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