71 references to ArgumentOutOfRange
System.Reflection.Metadata (71)
System\Reflection\Internal\Utilities\BlobUtilities.cs (2)
265
Throw.
ArgumentOutOfRange
(nameof(start));
270
Throw.
ArgumentOutOfRange
(byteCountParameterName);
System\Reflection\Metadata\BlobBuilder.cs (4)
59
Throw.
ArgumentOutOfRange
(nameof(capacity));
588
Throw.
ArgumentOutOfRange
(nameof(byteCount));
626
Throw.
ArgumentOutOfRange
(nameof(byteCount));
661
Throw.
ArgumentOutOfRange
(nameof(byteCount));
System\Reflection\Metadata\BlobWriter.cs (3)
126
Throw.
ArgumentOutOfRange
(nameof(byteCount));
144
Throw.
ArgumentOutOfRange
(nameof(byteCount));
178
Throw.
ArgumentOutOfRange
(nameof(byteCount));
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (17)
57
Throw.
ArgumentOutOfRange
(nameof(genericArgumentCount));
81
Throw.
ArgumentOutOfRange
(nameof(genericParameterCount));
157
Throw.
ArgumentOutOfRange
(nameof(variableCount));
186
Throw.
ArgumentOutOfRange
(nameof(attributeCount));
203
Throw.
ArgumentOutOfRange
(nameof(argumentCount));
233
Throw.
ArgumentOutOfRange
(nameof(parameterCount));
659
Throw.
ArgumentOutOfRange
(nameof(count));
702
Throw.
ArgumentOutOfRange
(nameof(count));
864
Throw.
ArgumentOutOfRange
(nameof(type));
1017
Throw.
ArgumentOutOfRange
(nameof(type));
1101
Throw.
ArgumentOutOfRange
(nameof(genericParameterCount));
1127
Throw.
ArgumentOutOfRange
(nameof(genericArgumentCount));
1150
Throw.
ArgumentOutOfRange
(nameof(parameterIndex));
1166
Throw.
ArgumentOutOfRange
(nameof(parameterIndex));
1278
Throw.
ArgumentOutOfRange
(nameof(rank));
1292
Throw.
ArgumentOutOfRange
(nameof(rank));
1314
Throw.
ArgumentOutOfRange
(nameof(rank));
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (9)
219
if (unchecked((ushort)tryOffset) != tryOffset) Throw.
ArgumentOutOfRange
(nameof(tryOffset));
220
if (unchecked((byte)tryLength) != tryLength) Throw.
ArgumentOutOfRange
(nameof(tryLength));
221
if (unchecked((ushort)handlerOffset) != handlerOffset) Throw.
ArgumentOutOfRange
(nameof(handlerOffset));
222
if (unchecked((byte)handlerLength) != handlerLength) Throw.
ArgumentOutOfRange
(nameof(handlerLength));
226
if (tryOffset < 0) Throw.
ArgumentOutOfRange
(nameof(tryOffset));
227
if (tryLength < 0) Throw.
ArgumentOutOfRange
(nameof(tryLength));
228
if (handlerOffset < 0) Throw.
ArgumentOutOfRange
(nameof(handlerOffset));
229
if (handlerLength < 0) Throw.
ArgumentOutOfRange
(nameof(handlerLength));
247
Throw.
ArgumentOutOfRange
(nameof(filterOffset));
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (7)
240
Throw.
ArgumentOutOfRange
(nameof(slotIndex));
274
Throw.
ArgumentOutOfRange
(nameof(slotIndex));
300
Throw.
ArgumentOutOfRange
(nameof(slotIndex));
331
Throw.
ArgumentOutOfRange
(nameof(argumentIndex));
357
Throw.
ArgumentOutOfRange
(nameof(argumentIndex));
380
Throw.
ArgumentOutOfRange
(nameof(argumentIndex));
449
Throw.
ArgumentOutOfRange
(nameof(branchCount));
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (4)
79
Throw.
ArgumentOutOfRange
(nameof(codeSize));
84
Throw.
ArgumentOutOfRange
(nameof(maxStack));
89
Throw.
ArgumentOutOfRange
(nameof(exceptionRegionCount));
172
Throw.
ArgumentOutOfRange
(nameof(maxStack));
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (7)
89
Throw.
ArgumentOutOfRange
(nameof(userStringHeapStartOffset));
94
Throw.
ArgumentOutOfRange
(nameof(stringHeapStartOffset));
99
Throw.
ArgumentOutOfRange
(nameof(blobHeapStartOffset));
104
Throw.
ArgumentOutOfRange
(nameof(guidHeapStartOffset));
147
Throw.
ArgumentOutOfRange
(nameof(byteCount));
170
Throw.
ArgumentOutOfRange
(nameof(heap));
478
Throw.
ArgumentOutOfRange
(nameof(length));
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (7)
142
Throw.
ArgumentOutOfRange
(nameof(rowCount));
367
Throw.
ArgumentOutOfRange
(nameof(generation));
803
Throw.
ArgumentOutOfRange
(nameof(sequenceNumber));
837
Throw.
ArgumentOutOfRange
(nameof(index));
956
Throw.
ArgumentOutOfRange
(nameof(offset));
995
Throw.
ArgumentOutOfRange
(nameof(bodyOffset));
1300
Throw.
ArgumentOutOfRange
(nameof(index));
System\Reflection\Metadata\Ecma335\MetadataRootBuilder.cs (2)
106
Throw.
ArgumentOutOfRange
(nameof(methodBodyStreamRva));
111
Throw.
ArgumentOutOfRange
(nameof(mappedFieldDataStreamRva));
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (1)
408
Throw.
ArgumentOutOfRange
(nameof(index));
System\Reflection\Metadata\MetadataReader.cs (1)
81
Throw.
ArgumentOutOfRange
(nameof(length));
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (2)
113
Throw.
ArgumentOutOfRange
(nameof(age));
124
Throw.
ArgumentOutOfRange
(nameof(portablePdbVersion));
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (1)
29
Throw.
ArgumentOutOfRange
(nameof(portablePdbVersion));
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (1)
66
Throw.
ArgumentOutOfRange
(nameof(strongNameSignatureSize));
System\Reflection\PortableExecutable\PEHeaderBuilder.cs (2)
69
Throw.
ArgumentOutOfRange
(nameof(fileAlignment));
74
Throw.
ArgumentOutOfRange
(nameof(sectionAlignment));
System\Reflection\PortableExecutable\PEReader.cs (1)
486
Throw.
ArgumentOutOfRange
(nameof(relativeVirtualAddress));