206 instantiations of IndexOutOfRangeException
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttributeCollection.cs (1)
31throw new IndexOutOfRangeException(ResXml.Xdom_IndexOutOfRange);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNamedNodeMap.cs (1)
80throw new IndexOutOfRangeException(ResXml.Xdom_IndexOutOfRange);
FrameworkFork\Microsoft.Xml\Xml\HWStack.cs (2)
87throw new IndexOutOfRangeException(); 98throw new IndexOutOfRangeException();
ErrorPageMiddlewareWebSite (1)
AggregateExceptionController.cs (1)
28throw new IndexOutOfRangeException("Index is out of range");
http2cat (1)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (1)
37throw new IndexOutOfRangeException();
IIS.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (1)
37throw new IndexOutOfRangeException();
IIS.LongTests (1)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (1)
37throw new IndexOutOfRangeException();
IIS.NewHandler.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (1)
37throw new IndexOutOfRangeException();
IIS.NewShim.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (1)
37throw new IndexOutOfRangeException();
IISExpress.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (1)
37throw new IndexOutOfRangeException();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (1)
37throw new IndexOutOfRangeException();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (1)
37throw new IndexOutOfRangeException();
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (1)
37throw new IndexOutOfRangeException();
Microsoft.Build (3)
Instance\ImmutableProjectCollections\ImmutableItemDefinitionsListConverter.cs (3)
41throw new IndexOutOfRangeException(); 49throw new IndexOutOfRangeException(); 56throw new IndexOutOfRangeException();
Microsoft.Build.Engine.UnitTests (5)
BackEnd\EventSourceSink_Tests.cs (4)
193Exception[] exceptionArray = new Exception[] { new IndexOutOfRangeException(), new Exception() }; //// two non-critical exceptions 204Exception[] exceptionArray1 = new Exception[] { new IndexOutOfRangeException(), new Exception() }; //// two non-critical exceptions 228Exception[] exceptionArray = new Exception[] { new OutOfMemoryException(), new IndexOutOfRangeException(), new Exception() }; //// two non-critical exceptions, one critical 239Exception[] exceptionArray1 = new Exception[] { new OutOfMemoryException(), new IndexOutOfRangeException(), new Exception() }; //// two non-critical exceptions, one critical
BackEnd\TaskBuilderTestTask.cs (1)
1215throw new IndexOutOfRangeException();
Microsoft.Build.Framework (1)
ThrowHelper.cs (1)
50throw new IndexOutOfRangeException();
Microsoft.CodeAnalysis (10)
Collections\BitVector.cs (2)
347throw new IndexOutOfRangeException(); 359throw new IndexOutOfRangeException();
Collections\OrderPreservingMultiDictionary.cs (1)
222throw new IndexOutOfRangeException();
InternalUtilities\SetWithInsertionOrder.cs (1)
46throw new IndexOutOfRangeException();
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
50throw new IndexOutOfRangeException();
src\Dependencies\Collections\OneOrMany.cs (1)
74throw new IndexOutOfRangeException();
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
69throw new IndexOutOfRangeException();
src\Dependencies\Collections\TemporaryArray`1.cs (1)
440=> throw new IndexOutOfRangeException();
Syntax\SyntaxTriviaList.cs (1)
494throw new IndexOutOfRangeException();
Syntax\SyntaxTriviaListBuilder.cs (1)
54throw new IndexOutOfRangeException();
Microsoft.CodeAnalysis.CodeStyle (8)
src\Compilers\Core\Portable\Collections\BitVector.cs (2)
347throw new IndexOutOfRangeException(); 359throw new IndexOutOfRangeException();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
222throw new IndexOutOfRangeException();
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
46throw new IndexOutOfRangeException();
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
50throw new IndexOutOfRangeException();
src\Dependencies\Collections\OneOrMany.cs (1)
74throw new IndexOutOfRangeException();
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
69throw new IndexOutOfRangeException();
src\Dependencies\Collections\TemporaryArray`1.cs (1)
440=> throw new IndexOutOfRangeException();
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
96throw new IndexOutOfRangeException();
Microsoft.CodeAnalysis.Collections.Package (4)
Internal\ThrowHelper.cs (1)
50throw new IndexOutOfRangeException();
OneOrMany.cs (1)
74throw new IndexOutOfRangeException();
Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
69throw new IndexOutOfRangeException();
TemporaryArray`1.cs (1)
440=> throw new IndexOutOfRangeException();
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
50throw new IndexOutOfRangeException();
src\Dependencies\Collections\OneOrMany.cs (1)
74throw new IndexOutOfRangeException();
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
69throw new IndexOutOfRangeException();
src\Dependencies\Collections\TemporaryArray`1.cs (1)
440=> throw new IndexOutOfRangeException();
Microsoft.CodeAnalysis.Threading.Package (4)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
50throw new IndexOutOfRangeException();
src\Dependencies\Collections\OneOrMany.cs (1)
74throw new IndexOutOfRangeException();
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
69throw new IndexOutOfRangeException();
src\Dependencies\Collections\TemporaryArray`1.cs (1)
440=> throw new IndexOutOfRangeException();
Microsoft.CodeAnalysis.Workspaces (9)
src\Compilers\Core\Portable\Collections\BitVector.cs (2)
347throw new IndexOutOfRangeException(); 359throw new IndexOutOfRangeException();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
222throw new IndexOutOfRangeException();
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
46throw new IndexOutOfRangeException();
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
50throw new IndexOutOfRangeException();
src\Dependencies\Collections\OneOrMany.cs (1)
74throw new IndexOutOfRangeException();
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
69throw new IndexOutOfRangeException();
src\Dependencies\Collections\TemporaryArray`1.cs (1)
440=> throw new IndexOutOfRangeException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
96throw new IndexOutOfRangeException();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
46throw new IndexOutOfRangeException();
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
50throw new IndexOutOfRangeException();
src\Dependencies\Collections\OneOrMany.cs (1)
74throw new IndexOutOfRangeException();
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
69throw new IndexOutOfRangeException();
src\Dependencies\Collections\TemporaryArray`1.cs (1)
440=> throw new IndexOutOfRangeException();
Microsoft.Data.Analysis (3)
DataFrameColumns\StringDataFrameColumn.cs (1)
525throw new IndexOutOfRangeException(nameof(row));
DataFrameColumns\VBufferDataFrameColumn.cs (1)
208throw new IndexOutOfRangeException(nameof(row));
PrimitiveDataFrameColumn.cs (1)
914throw new IndexOutOfRangeException(nameof(row));
Microsoft.Extensions.Caching.Hybrid (1)
Internal\TagSet.cs (1)
80_ => throw new IndexOutOfRangeException(nameof(index)),
Microsoft.Extensions.Http (1)
Logging\HttpHeadersLogValue.cs (1)
67throw new IndexOutOfRangeException(nameof(index));
Microsoft.Extensions.Logging.Abstractions (9)
FormattedLogValues.cs (1)
66throw new IndexOutOfRangeException(nameof(index));
LoggerMessage.cs (7)
485throw new IndexOutOfRangeException(nameof(index)); 528throw new IndexOutOfRangeException(nameof(index)); 580throw new IndexOutOfRangeException(nameof(index)); 629throw new IndexOutOfRangeException(nameof(index)); 687throw new IndexOutOfRangeException(nameof(index)); 751throw new IndexOutOfRangeException(nameof(index)); 819throw new IndexOutOfRangeException(nameof(index));
LogValuesFormatter.cs (1)
225throw new IndexOutOfRangeException(nameof(index));
Microsoft.Maui (2)
CommandMapper.cs (1)
94 var action = GetCommand(key) ?? throw new IndexOutOfRangeException($"Unable to find mapping for '{nameof(key)}'.");
PropertyMapper.cs (1)
238 var action = GetProperty(key) ?? throw new IndexOutOfRangeException($"Unable to find mapping for '{nameof(key)}'.");
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
239Return New IndexOutOfRangeException(Description)
PresentationCore (4)
MS\Internal\Ink\Quad.cs (1)
58throw new IndexOutOfRangeException("index");
MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
197throw new IndexOutOfRangeException();
System\Windows\Media\Imaging\BitmapSource.cs (1)
668throw new IndexOutOfRangeException();
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
502throw new IndexOutOfRangeException();
PresentationFramework (8)
System\Windows\Documents\TextElementCollection.cs (7)
458throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 477throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 488throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 543throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 550throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 768throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange); 775throw new IndexOutOfRangeException(SR.TextElementCollection_IndexOutOfRange);
System\Windows\ThemeDictionaryExtension.cs (1)
136throw new IndexOutOfRangeException();
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
129private static void ThrowIndexOutOfRangeException() => throw new IndexOutOfRangeException();
System.ComponentModel.TypeConverter (7)
System\ComponentModel\Design\DesignerOptionService.cs (1)
220throw new IndexOutOfRangeException(nameof(index));
System\ComponentModel\EventDescriptorCollection.cs (2)
81throw new IndexOutOfRangeException(); 388throw new IndexOutOfRangeException();
System\ComponentModel\MaskedTextProvider.cs (1)
794throw new IndexOutOfRangeException(index.ToString(CultureInfo.CurrentCulture));
System\ComponentModel\PropertyDescriptorCollection.cs (3)
87throw new IndexOutOfRangeException(); 471throw new IndexOutOfRangeException(); 575throw new IndexOutOfRangeException();
System.Data.Common (2)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
95IndexOutOfRangeException e = new IndexOutOfRangeException(error);
System\Data\DataException.cs (1)
342private static Exception _IndexOutOfRange(string error) => TraceExceptionAsReturnValue(new IndexOutOfRangeException(error));
System.Data.Odbc (1)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
95IndexOutOfRangeException e = new IndexOutOfRangeException(error);
System.Linq.Expressions (2)
System\Runtime\CompilerServices\RuntimeOps.RuntimeVariableList.cs (2)
47throw new IndexOutOfRangeException(); 51throw new IndexOutOfRangeException();
System.Net.Http (5)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\DynamicTable.cs (1)
37throw new IndexOutOfRangeException();
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (4)
332throw new IndexOutOfRangeException(); 346throw new IndexOutOfRangeException(); 367throw new IndexOutOfRangeException(); 379throw new IndexOutOfRangeException();
System.Net.NameResolution (1)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
48throw new IndexOutOfRangeException();
System.Net.Ping (1)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
48throw new IndexOutOfRangeException();
System.Net.Primitives (3)
src\libraries\Common\src\System\Net\SocketAddress.cs (2)
58throw new IndexOutOfRangeException(); 66throw new IndexOutOfRangeException();
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
48throw new IndexOutOfRangeException();
System.Net.Quic (5)
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (4)
332throw new IndexOutOfRangeException(); 346throw new IndexOutOfRangeException(); 367throw new IndexOutOfRangeException(); 379throw new IndexOutOfRangeException();
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
48throw new IndexOutOfRangeException();
System.Net.Sockets (1)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (1)
48throw new IndexOutOfRangeException();
System.Numerics.Tensors (1)
System\ThrowHelper.cs (1)
73throw new IndexOutOfRangeException();
System.Private.CoreLib (37)
src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (1)
324ExceptionIDs.IndexOutOfRange => new IndexOutOfRangeException(),
src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
46throw new IndexOutOfRangeException();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (4)
82throw new IndexOutOfRangeException(SR.EventSource_AddScalarOutOfRange); 314throw new IndexOutOfRangeException(SR.EventSource_PinArrayOutOfRange); 320throw new IndexOutOfRangeException(SR.EventSource_DataDescriptorsOutOfRange); 338throw new IndexOutOfRangeException(SR.EventSource_DataDescriptorsOutOfRange);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (1)
308throw new IndexOutOfRangeException(SR.IndexOutOfRange_UMSPosition);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
292throw new IndexOutOfRangeException();
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
92throw new IndexOutOfRangeException();
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
46throw new IndexOutOfRangeException();
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
140throw new IndexOutOfRangeException();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (1)
39throw new IndexOutOfRangeException(SR.IndexOutOfRange_ArrayWithOffset);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
458throw new IndexOutOfRangeException(); 465throw new IndexOutOfRangeException();
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
89throw new IndexOutOfRangeException();
src\libraries\System.Private.CoreLib\src\System\Tuple.cs (7)
213throw new IndexOutOfRangeException(); 338_ => throw new IndexOutOfRangeException(), 470_ => throw new IndexOutOfRangeException(), 612_ => throw new IndexOutOfRangeException(), 764_ => throw new IndexOutOfRangeException(), 926_ => throw new IndexOutOfRangeException(), 1098_ => throw new IndexOutOfRangeException(),
src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (9)
139object? ITuple.this[int index] => throw new IndexOutOfRangeException(); 412throw new IndexOutOfRangeException(); 616_ => throw new IndexOutOfRangeException(), 814_ => throw new IndexOutOfRangeException(), 1030_ => throw new IndexOutOfRangeException(), 1264_ => throw new IndexOutOfRangeException(), 1516_ => throw new IndexOutOfRangeException(), 1786_ => throw new IndexOutOfRangeException(), 2232throw new IndexOutOfRangeException();
src\System\Array.CoreCLR.cs (3)
639throw new IndexOutOfRangeException(SR.IndexOutOfRange_ArrayRankIndex); 652throw new IndexOutOfRangeException(SR.IndexOutOfRange_ArrayRankIndex); 666throw new IndexOutOfRangeException(SR.IndexOutOfRange_ArrayRankIndex);
src\System\Reflection\MdImport.cs (1)
121throw new IndexOutOfRangeException();
src\System\Runtime\CompilerServices\CastHelpers.cs (1)
405throw new IndexOutOfRangeException();
src\System\RuntimeType.CoreCLR.cs (1)
3696throw new IndexOutOfRangeException();
System.Private.Xml (29)
System\Xml\Dom\XmlAttributeCollection.cs (1)
29throw new IndexOutOfRangeException(SR.Xdom_IndexOutOfRange);
System\Xml\Dom\XmlNamedNodemap.cs (1)
79throw new IndexOutOfRangeException(SR.Xdom_IndexOutOfRange);
System\Xml\HWStack.cs (2)
86throw new IndexOutOfRangeException(); 97throw new IndexOutOfRangeException();
System\Xml\NameTable.cs (2)
93throw new IndexOutOfRangeException(); 150throw new IndexOutOfRangeException();
System\Xml\Xsl\IlGen\XmlILAnnotation.cs (1)
137_ => throw new IndexOutOfRangeException(),
System\Xml\Xsl\QIL\QilBinary.cs (2)
52_ => throw new IndexOutOfRangeException(), 61default: throw new IndexOutOfRangeException();
System\Xml\Xsl\QIL\QilExpression.cs (2)
74_ => throw new IndexOutOfRangeException(), 89default: throw new IndexOutOfRangeException();
System\Xml\Xsl\QIL\QilFunction.cs (2)
62_ => throw new IndexOutOfRangeException(), 72default: throw new IndexOutOfRangeException();
System\Xml\Xsl\QIL\QilIterator.cs (2)
40get { if (index != 0) throw new IndexOutOfRangeException(); return _binding!; } 41set { if (index != 0) throw new IndexOutOfRangeException(); _binding = value; }
System\Xml\Xsl\QIL\QilList.cs (4)
103throw new IndexOutOfRangeException(); 110throw new IndexOutOfRangeException(); 120throw new IndexOutOfRangeException(); 142throw new IndexOutOfRangeException();
System\Xml\Xsl\QIL\QilNode.cs (2)
121get { throw new IndexOutOfRangeException(); } 122set { throw new IndexOutOfRangeException(); }
System\Xml\Xsl\QIL\QilParameter.cs (2)
47_ => throw new IndexOutOfRangeException(), 56default: throw new IndexOutOfRangeException();
System\Xml\Xsl\QIL\QilTernary.cs (2)
54_ => throw new IndexOutOfRangeException(), 64default: throw new IndexOutOfRangeException();
System\Xml\Xsl\QIL\QilUnary.cs (2)
45get { if (index != 0) throw new IndexOutOfRangeException(); return _child; } 46set { if (index != 0) throw new IndexOutOfRangeException(); _child = value; }
System\Xml\Xsl\QIL\QilXmlWriter.cs (1)
461throw new IndexOutOfRangeException();
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
676throw new IndexOutOfRangeException();
System.Reflection.Emit (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
292throw new IndexOutOfRangeException();
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
318throw new IndexOutOfRangeException(); // This is an impressively uninformative exception, unfortunately, this is the compatible behavior.
System.Text.Json (2)
System\Text\Json\Document\JsonDocument.cs (2)
163throw new IndexOutOfRangeException(); 196throw new IndexOutOfRangeException();
System.Windows.Forms (8)
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
580throw new IndexOutOfRangeException();
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
436? throw new IndexOutOfRangeException()
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
155throw new IndexOutOfRangeException();
System\Windows\Forms\DataBinding\CurrencyManager.cs (3)
258throw new IndexOutOfRangeException(string.Format(SR.ListManagerNoValue, index.ToString(CultureInfo.CurrentCulture))); 267throw new IndexOutOfRangeException(string.Format(SR.ListManagerNoValue, index.ToString(CultureInfo.CurrentCulture))); 341throw new IndexOutOfRangeException(SR.ListManagerBadPosition);
System\Windows\Forms\Internal\ItemArray.cs (2)
161throw new IndexOutOfRangeException(); 176throw new IndexOutOfRangeException();
System.Xaml (1)
System\Xaml\ReaderMultiIndexDelegate.cs (1)
84throw new IndexOutOfRangeException();
194 references to IndexOutOfRangeException
Aspire.Azure.Messaging.EventHubs (1)
EventHubsComponent.cs (1)
109catch (Exception ex) when (ex is FormatException or IndexOutOfRangeException)
http2cat (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
664catch (IndexOutOfRangeException)
IIS.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
664catch (IndexOutOfRangeException)
IIS.LongTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
664catch (IndexOutOfRangeException)
IIS.NewHandler.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
664catch (IndexOutOfRangeException)
IIS.NewShim.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
664catch (IndexOutOfRangeException)
IISExpress.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
664catch (IndexOutOfRangeException)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
664catch (IndexOutOfRangeException)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http3\QPack\EncoderStreamReader.cs (1)
324catch (IndexOutOfRangeException ex)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
664catch (IndexOutOfRangeException)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Shared\test\Shared.Tests\runtime\Http2\DynamicTableTest.cs (2)
67Assert.Throws<IndexOutOfRangeException>(() => dynamicTable[0]); 70Assert.Throws<IndexOutOfRangeException>(() => dynamicTable[1]);
Microsoft.AspNetCore.Shared.Tests (3)
runtime\Http2\DynamicTableTest.cs (2)
67Assert.Throws<IndexOutOfRangeException>(() => dynamicTable[0]); 70Assert.Throws<IndexOutOfRangeException>(() => dynamicTable[1]);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
664catch (IndexOutOfRangeException)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskExecutionHost_Tests.cs (1)
639Assert.Throws<IndexOutOfRangeException>(() =>
Microsoft.Build.Framework (5)
ArraySortHelper.cs (5)
37catch (IndexOutOfRangeException) 70catch (IndexOutOfRangeException) 326catch (IndexOutOfRangeException) 677catch (IndexOutOfRangeException) 932catch (IndexOutOfRangeException)
Microsoft.CodeAnalysis (7)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
39catch (IndexOutOfRangeException) 72catch (IndexOutOfRangeException) 329catch (IndexOutOfRangeException) 679catch (IndexOutOfRangeException) 932catch (IndexOutOfRangeException)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
434/// Throws <see cref="IndexOutOfRangeException"/>.
Syntax\SyntaxNodeOrTokenList.cs (1)
131/// <exception cref="IndexOutOfRangeException"><paramref name="index"/> is out of range.</exception>
Microsoft.CodeAnalysis.CodeStyle (6)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
39catch (IndexOutOfRangeException) 72catch (IndexOutOfRangeException) 329catch (IndexOutOfRangeException) 679catch (IndexOutOfRangeException) 932catch (IndexOutOfRangeException)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
434/// Throws <see cref="IndexOutOfRangeException"/>.
Microsoft.CodeAnalysis.Collections.Package (6)
Internal\ArraySortHelper.cs (5)
39catch (IndexOutOfRangeException) 72catch (IndexOutOfRangeException) 329catch (IndexOutOfRangeException) 679catch (IndexOutOfRangeException) 932catch (IndexOutOfRangeException)
TemporaryArray`1.cs (1)
434/// Throws <see cref="IndexOutOfRangeException"/>.
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Symbols\CustomModifiersTests.cs (13)
69Assert.Throws<System.IndexOutOfRangeException>(() => type.GetTypeArgumentCustomModifiers(1)); 70Assert.Throws<System.IndexOutOfRangeException>(() => type.GetTypeArgumentCustomModifiers(-1)); 75Assert.Throws<System.IndexOutOfRangeException>(() => nullable.GetTypeArgumentCustomModifiers(1)); 76Assert.Throws<System.IndexOutOfRangeException>(() => nullable.GetTypeArgumentCustomModifiers(-1)); 80Assert.Throws<System.IndexOutOfRangeException>(() => i.GetTypeArgumentCustomModifiers(0)); 85Assert.Throws<System.IndexOutOfRangeException>(() => nullable.GetTypeArgumentCustomModifiers(1)); 86Assert.Throws<System.IndexOutOfRangeException>(() => nullable.GetTypeArgumentCustomModifiers(-1)); 144Assert.Throws<System.IndexOutOfRangeException>(() => type.GetTypeArgumentCustomModifiers(2)); 145Assert.Throws<System.IndexOutOfRangeException>(() => type.GetTypeArgumentCustomModifiers(-1)); 151Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.GetTypeArgumentCustomModifiers(2)); 152Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.GetTypeArgumentCustomModifiers(-1)); 159Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.GetTypeArgumentCustomModifiers(2)); 160Assert.Throws<System.IndexOutOfRangeException>(() => dictionary.GetTypeArgumentCustomModifiers(-1));
Microsoft.CodeAnalysis.InteractiveHost (6)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
39catch (IndexOutOfRangeException) 72catch (IndexOutOfRangeException) 329catch (IndexOutOfRangeException) 679catch (IndexOutOfRangeException) 932catch (IndexOutOfRangeException)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
434/// Throws <see cref="IndexOutOfRangeException"/>.
Microsoft.CodeAnalysis.Threading.Package (6)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
39catch (IndexOutOfRangeException) 72catch (IndexOutOfRangeException) 329catch (IndexOutOfRangeException) 679catch (IndexOutOfRangeException) 932catch (IndexOutOfRangeException)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
434/// Throws <see cref="IndexOutOfRangeException"/>.
Microsoft.CodeAnalysis.UnitTests (18)
Collections\BitArrayTests.cs (3)
303Assert.Throws<IndexOutOfRangeException>(() => _ = b[index]); 317Assert.Throws<IndexOutOfRangeException>(() => b[index] = false); 320Assert.Throws<IndexOutOfRangeException>(() => b[index] = true);
Collections\TemporaryArrayTests.cs (7)
23Assert.Throws<IndexOutOfRangeException>(() => TemporaryArray<int>.Empty[-1]); 24Assert.Throws<IndexOutOfRangeException>(() => 30Assert.Throws<IndexOutOfRangeException>(() => TemporaryArray<int>.Empty[0]); 31Assert.Throws<IndexOutOfRangeException>(() => 69Assert.Throws<IndexOutOfRangeException>(() => array[i]); 70Assert.Throws<IndexOutOfRangeException>(() => array.AsRef()[i] = 1); 281Assert.Throws<IndexOutOfRangeException>(() => array.RemoveLast());
InternalUtilities\OneOrManyTests.cs (4)
213Assert.Throws<IndexOutOfRangeException>(() => single[1]); 214Assert.Throws<IndexOutOfRangeException>(() => single[-1]); 215Assert.Throws<IndexOutOfRangeException>(() => quad[5]); 216Assert.Throws<IndexOutOfRangeException>(() => quad[-1]);
Text\LargeTextTests.cs (2)
65Assert.Throws<IndexOutOfRangeException>(() => text[-1]); 66Assert.Throws<IndexOutOfRangeException>(() => text[HelloWorld.Length]);
Text\StringTextTest.cs (1)
84Assert.Throws<IndexOutOfRangeException>(
Text\StringTextTests_Default.cs (1)
50Assert.Throws<IndexOutOfRangeException>(
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (13)
SymbolsTests\CustomModifiersTests.vb (13)
65Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.GetTypeArgumentCustomModifiers(1)) 66Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.GetTypeArgumentCustomModifiers(-1)) 71Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.GetTypeArgumentCustomModifiers(1)) 72Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.GetTypeArgumentCustomModifiers(-1)) 76Assert.Throws(Of System.IndexOutOfRangeException)(Sub() i.GetTypeArgumentCustomModifiers(0)) 81Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.GetTypeArgumentCustomModifiers(1)) 82Assert.Throws(Of System.IndexOutOfRangeException)(Sub() nullable.GetTypeArgumentCustomModifiers(-1)) 138Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.GetTypeArgumentCustomModifiers(2)) 139Assert.Throws(Of System.IndexOutOfRangeException)(Sub() type.GetTypeArgumentCustomModifiers(-1)) 145Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.GetTypeArgumentCustomModifiers(2)) 146Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.GetTypeArgumentCustomModifiers(-1)) 153Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.GetTypeArgumentCustomModifiers(2)) 154Assert.Throws(Of System.IndexOutOfRangeException)(Sub() dictionary.GetTypeArgumentCustomModifiers(-1))
Microsoft.CodeAnalysis.Workspaces (6)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
39catch (IndexOutOfRangeException) 72catch (IndexOutOfRangeException) 329catch (IndexOutOfRangeException) 679catch (IndexOutOfRangeException) 932catch (IndexOutOfRangeException)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
434/// Throws <see cref="IndexOutOfRangeException"/>.
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Dependencies\Collections\Internal\ArraySortHelper.cs (5)
39catch (IndexOutOfRangeException) 72catch (IndexOutOfRangeException) 329catch (IndexOutOfRangeException) 679catch (IndexOutOfRangeException) 932catch (IndexOutOfRangeException)
src\Dependencies\Collections\TemporaryArray`1.cs (1)
434/// Throws <see cref="IndexOutOfRangeException"/>.
Microsoft.Data.Analysis.Tests (3)
DataFrame.IOTests.cs (2)
752Assert.Throws<IndexOutOfRangeException>(() => DataFrame.LoadCsv(GetStream(data))); 753Assert.Throws<IndexOutOfRangeException>(() => DataFrame.LoadCsvFromString(data));
PrimitiveDataFrameColumnTests.cs (1)
470Assert.Throws<IndexOutOfRangeException>(() => column.Clone(indicesMap));
Microsoft.Maui.Controls (3)
BindingExpression.cs (1)
731 if (ex.InnerException is KeyNotFoundException || ex.InnerException is IndexOutOfRangeException || ex.InnerException is ArgumentOutOfRangeException)
OrderedDictionary.cs (1)
96 /// <exception cref="IndexOutOfRangeException">
TypedBinding.cs (1)
316 catch (Exception ex) when (ex is NullReferenceException || ex is KeyNotFoundException || ex is IndexOutOfRangeException || ex is ArgumentOutOfRangeException)
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (2)
1781Catch Ex As IndexOutOfRangeException 2066Catch Ex As IndexOutOfRangeException
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
298[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IndexOutOfRangeException))]
netstandard (1)
netstandard.cs (1)
874[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IndexOutOfRangeException))]
PresentationCore (1)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
140catch (IndexOutOfRangeException ex)
PresentationFramework (1)
System\Windows\Application.cs (1)
2304catch (System.IndexOutOfRangeException)
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (2)
136/// <exception cref="IndexOutOfRangeException"> 166/// <exception cref="IndexOutOfRangeException">
System.Data.Common (28)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (5)
93internal static IndexOutOfRangeException IndexOutOfRange(string error) 95IndexOutOfRangeException e = new IndexOutOfRangeException(error); 318internal static IndexOutOfRangeException CollectionIndexInt32(int index, Type collection, int count) 322internal static IndexOutOfRangeException CollectionIndexString(Type itemType, string propertyName, string propertyValue, Type collection) 466internal static IndexOutOfRangeException InvalidBufferSizeOrIndex(int numBytes, int bufferIndex)
System\Data\DataRowView.cs (1)
51/// <exception cref="IndexOutOfRangeException"><see cref="DataColumnCollection.get_Item(int)"/></exception>
System\Data\DataTableReader.cs (19)
258catch (IndexOutOfRangeException e) 322catch (IndexOutOfRangeException e) 338catch (IndexOutOfRangeException e) 355catch (IndexOutOfRangeException e) 401catch (IndexOutOfRangeException e) 418catch (IndexOutOfRangeException e) 471catch (IndexOutOfRangeException e) 487catch (IndexOutOfRangeException e) 503catch (IndexOutOfRangeException e) 519catch (IndexOutOfRangeException e) 534catch (IndexOutOfRangeException e) 550catch (IndexOutOfRangeException e) 566catch (IndexOutOfRangeException e) 582catch (IndexOutOfRangeException e) 598catch (IndexOutOfRangeException e) 614catch (IndexOutOfRangeException e) 646catch (IndexOutOfRangeException e) 662catch (IndexOutOfRangeException e) 691catch (IndexOutOfRangeException e)
System\Data\DataView.cs (1)
1223/// <exception cref="IndexOutOfRangeException"></exception>
System\Data\RbTree.cs (2)
1279/// <exception cref="IndexOutOfRangeException"></exception> 1443/// <exception cref="IndexOutOfRangeException"></exception>
System.Data.Odbc (5)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (5)
93internal static IndexOutOfRangeException IndexOutOfRange(string error) 95IndexOutOfRangeException e = new IndexOutOfRangeException(error); 318internal static IndexOutOfRangeException CollectionIndexInt32(int index, Type collection, int count) 322internal static IndexOutOfRangeException CollectionIndexString(Type itemType, string propertyName, string propertyValue, Type collection) 466internal static IndexOutOfRangeException InvalidBufferSizeOrIndex(int numBytes, int bufferIndex)
System.Drawing.Common.Tests (5)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (1)
552Assert.Throws<IndexOutOfRangeException>(() => brush.LinearColors = new Color[length]);
System\Drawing\Imaging\ColorMatrixTests.cs (4)
72yield return new object[] { Array.Empty<float[]>(), typeof(IndexOutOfRangeException) }; 73yield return new object[] { new float[][] { [0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f] }, typeof(IndexOutOfRangeException) }; 85typeof(IndexOutOfRangeException) 164Assert.Throws<IndexOutOfRangeException>(() => _ = cm[5, 5]);
System.Net.Http (1)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (1)
664catch (IndexOutOfRangeException)
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Array.cs (2)
2302catch (IndexOutOfRangeException) 2519catch (IndexOutOfRangeException)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (5)
28catch (IndexOutOfRangeException) 63catch (IndexOutOfRangeException) 314catch (IndexOutOfRangeException) 623catch (IndexOutOfRangeException) 866catch (IndexOutOfRangeException)
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
136/// <exception cref="IndexOutOfRangeException">
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
792catch (IndexOutOfRangeException e)
src\libraries\System.Private.CoreLib\src\System\Span.cs (1)
141/// <exception cref="IndexOutOfRangeException">
System.Private.Windows.Core (1)
System\ExceptionExtensions.cs (1)
21or IndexOutOfRangeException
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
792catch (IndexOutOfRangeException e)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
276[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IndexOutOfRangeException))]
System.Text.Json (1)
System\Text\Json\Document\JsonElement.cs (1)
56/// <exception cref="IndexOutOfRangeException">
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (3)
1122catch (Exception exception) when (!exception.IsCriticalException() || exception is IndexOutOfRangeException) 1148catch (Exception exception) when (!exception.IsCriticalException() || exception is IndexOutOfRangeException) 1180catch (Exception exception) when (!exception.IsCriticalException() || exception is IndexOutOfRangeException)
System\Windows\Forms\Layout\TableLayout.SorterObjectArray.cs (2)
33catch (IndexOutOfRangeException) 77catch (IndexOutOfRangeException)
System.Windows.Forms.Tests (10)
System\Windows\Forms\BindingSourceTests.cs (5)
27Assert.Throws<IndexOutOfRangeException>(() => source.CurrencyManager.Current); 86Assert.Throws<IndexOutOfRangeException>(() => source.CurrencyManager.Current); 151Assert.Throws<IndexOutOfRangeException>(() => source.CurrencyManager.Current); 416Assert.Throws<IndexOutOfRangeException>(() => source.CurrencyManager.Current); 490Assert.Throws<IndexOutOfRangeException>(() => source.CurrencyManager.Current);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (2)
1591Assert.Throws<IndexOutOfRangeException>(() => collection.SetKeyName(index, "name")); 1603Assert.Throws<IndexOutOfRangeException>(() => collection.SetKeyName(index, "name"));
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (1)
137Assert.Throws<IndexOutOfRangeException>(() => converter.ConvertFrom($@"<?xml version=""1.0"" encoding=""utf-16""?><Root><Columns Styles=""{style}"" /></Root>"));
System\Windows\Forms\ListControlTests.cs (2)
2015Assert.Throws<IndexOutOfRangeException>(() => control.SelectedValue); 2089Assert.Throws<IndexOutOfRangeException>(() => control.SelectedValue);
System.Xaml.Tests (1)
System\Xaml\XamlNodeListTests.cs (1)
205Assert.Throws<IndexOutOfRangeException>(() => indexingReader.CurrentIndex = value);
WindowsBase.Tests (3)
System\Windows\NameScopeTests.cs (3)
543Assert.Throws<IndexOutOfRangeException>(() => nameScope.CopyTo(array, 0)); 554Assert.Throws<IndexOutOfRangeException>(() => nameScope.CopyTo(array, -1)); 555Assert.Throws<IndexOutOfRangeException>(() => nameScope.CopyTo(array, 1));