405 references to Throw
System.Reflection.Metadata (405)
System\Reflection\Internal\MemoryBlocks\MemoryBlockProvider.cs (1)
32Throw.ImageTooSmallOrContainsInvalidOffsetOrCount();
System\Reflection\Internal\Utilities\BlobUtilities.cs (2)
265Throw.ArgumentOutOfRange(nameof(start)); 270Throw.ArgumentOutOfRange(byteCountParameterName);
System\Reflection\Internal\Utilities\MemoryBlock.cs (5)
35Throw.ArgumentNull(nameof(buffer)); 46Throw.OutOfBounds(); 119Throw.ValueOverflow(); 217Throw.ReferenceOverflow(); 235Throw.ReferenceOverflow();
System\Reflection\Metadata\BlobBuilder.cs (34)
59Throw.ArgumentOutOfRange(nameof(capacity)); 80Throw.InvalidOperationBuilderAlreadyLinked(); 170Throw.InvalidOperationBuilderAlreadyLinked(); 184Throw.InvalidOperationBuilderAlreadyLinked(); 198Throw.InvalidOperationBuilderAlreadyLinked(); 213Throw.InvalidOperationBuilderAlreadyLinked(); 340Throw.ArgumentNull(nameof(destination)); 355Throw.ArgumentNull(nameof(destination)); 370Throw.ArgumentNull(nameof(destination)); 385Throw.ArgumentNull(nameof(prefix)); 392Throw.InvalidOperationBuilderAlreadyLinked(); 446Throw.ArgumentNull(nameof(suffix)); 453Throw.InvalidOperationBuilderAlreadyLinked(); 531Throw.InvalidOperationBuilderAlreadyLinked(); 588Throw.ArgumentOutOfRange(nameof(byteCount)); 626Throw.ArgumentOutOfRange(nameof(byteCount)); 631Throw.InvalidOperationBuilderAlreadyLinked(); 656Throw.ArgumentNull(nameof(buffer)); 661Throw.ArgumentOutOfRange(nameof(byteCount)); 666Throw.InvalidOperationBuilderAlreadyLinked(); 698Throw.ArgumentNull(nameof(source)); 744Throw.ArgumentNull(nameof(buffer)); 757Throw.ArgumentNull(nameof(buffer)); 771Throw.ArgumentNull(nameof(buffer)); 784Throw.ArgumentNull(nameof(buffer)); 796Throw.InvalidOperationBuilderAlreadyLinked(); 963Throw.ArgumentNull(nameof(value)); 968Throw.InvalidOperationBuilderAlreadyLinked(); 983Throw.ArgumentNull(nameof(value)); 988Throw.InvalidOperationBuilderAlreadyLinked(); 998Throw.InvalidOperationBuilderAlreadyLinked(); 1048Throw.ArgumentNull(nameof(value)); 1069Throw.ArgumentNull(nameof(value)); 1083Throw.InvalidOperationBuilderAlreadyLinked();
System\Reflection\Metadata\BlobContentId.cs (4)
31Throw.ArgumentNull(nameof(id)); 41Throw.ArgumentNull(nameof(id)); 68Throw.ArgumentNull(nameof(hashCode)); 78Throw.ArgumentNull(nameof(hashCode));
System\Reflection\Metadata\BlobReader.cs (9)
102Throw.OutOfBounds(); 129Throw.OutOfBounds(); 169Throw.OutOfBounds(); 178Throw.OutOfBounds(); 189Throw.OutOfBounds(); 203Throw.OutOfBounds(); 479Throw.InvalidCompressedInteger(); 535Throw.InvalidCompressedInteger(); 596Throw.InvalidSerializedString();
System\Reflection\Metadata\BlobWriter.cs (16)
70Throw.ValueArgumentOutOfRange(); 114Throw.OutOfBounds(); 126Throw.ArgumentOutOfRange(nameof(byteCount)); 139Throw.ArgumentNull(nameof(buffer)); 144Throw.ArgumentOutOfRange(nameof(byteCount)); 161Throw.ArgumentNull(nameof(source)); 173Throw.ArgumentNull(nameof(source)); 178Throw.ArgumentOutOfRange(nameof(byteCount)); 192Throw.ArgumentNull(nameof(buffer)); 204Throw.ArgumentNull(nameof(buffer)); 217Throw.ArgumentNull(nameof(buffer)); 229Throw.ArgumentNull(nameof(buffer)); 376Throw.ArgumentNull(nameof(value)); 390Throw.ArgumentNull(nameof(value)); 445Throw.ArgumentNull(nameof(value)); 461Throw.ArgumentNull(nameof(value));
System\Reflection\Metadata\BlobWriterImpl.cs (4)
51Throw.ValueArgumentOutOfRange(); 74Throw.ValueArgumentOutOfRange(); 108Throw.ValueArgumentOutOfRange(); 142Throw.ValueArgumentOutOfRange();
System\Reflection\Metadata\Ecma335\CodedIndex.cs (15)
226Throw.InvalidArgument_UnexpectedHandleKind(kind); 249Throw.InvalidArgument_UnexpectedHandleKind(kind); 270Throw.InvalidArgument_UnexpectedHandleKind(kind); 293Throw.InvalidArgument_UnexpectedHandleKind(kind); 314Throw.InvalidArgument_UnexpectedHandleKind(kind); 335Throw.InvalidArgument_UnexpectedHandleKind(kind); 358Throw.InvalidArgument_UnexpectedHandleKind(kind); 379Throw.InvalidArgument_UnexpectedHandleKind(kind); 406Throw.InvalidArgument_UnexpectedHandleKind(kind); 427Throw.InvalidArgument_UnexpectedHandleKind(kind); 452Throw.InvalidArgument_UnexpectedHandleKind(kind); 475Throw.InvalidArgument_UnexpectedHandleKind(kind); 496Throw.InvalidArgument_UnexpectedHandleKind(kind); 517Throw.InvalidArgument_UnexpectedHandleKind(kind); 588Throw.InvalidArgument_UnexpectedHandleKind(kind);
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (45)
19Throw.ArgumentNull(nameof(builder)); 57Throw.ArgumentOutOfRange(nameof(genericArgumentCount)); 81Throw.ArgumentOutOfRange(nameof(genericParameterCount)); 133Throw.ArgumentNull(nameof(fixedArguments)); 137Throw.ArgumentNull(nameof(namedArguments)); 157Throw.ArgumentOutOfRange(nameof(variableCount)); 186Throw.ArgumentOutOfRange(nameof(attributeCount)); 203Throw.ArgumentOutOfRange(nameof(argumentCount)); 233Throw.ArgumentOutOfRange(nameof(parameterCount)); 253Throw.ArgumentNull(nameof(returnType)); 257Throw.ArgumentNull(nameof(parameters)); 361Throw.ArgumentNull(nameof(typeName)); 366Throw.ArgumentNull(nameof(encodedArguments)); 371Throw.BlobTooLarge(nameof(encodedArguments)); 384Throw.ArgumentNull(nameof(typeName)); 388Throw.ArgumentNull(nameof(encodedArguments)); 393Throw.BlobTooLarge(nameof(encodedArguments)); 499Throw.ArgumentNull(nameof(arrayType)); 503Throw.ArgumentNull(nameof(vector)); 544Throw.ArgumentNull(nameof(type)); 548Throw.ArgumentNull(nameof(scalar)); 619Throw.ArgumentEmptyString(nameof(serializedTypeName)); 659Throw.ArgumentOutOfRange(nameof(count)); 680Throw.ArgumentNull(nameof(name)); 683if (name.Length == 0) Throw.ArgumentEmptyString(nameof(name)); 702Throw.ArgumentOutOfRange(nameof(count)); 747Throw.ArgumentNull(nameof(type)); 751Throw.ArgumentNull(nameof(name)); 755Throw.ArgumentNull(nameof(literal)); 864Throw.ArgumentOutOfRange(nameof(type)); 878Throw.ArgumentNull(nameof(enumTypeName)); 881if (enumTypeName.Length == 0) Throw.ArgumentEmptyString(nameof(enumTypeName)); 1017Throw.ArgumentOutOfRange(nameof(type)); 1045Throw.ArgumentNull(nameof(elementType)); 1049Throw.ArgumentNull(nameof(arrayShape)); 1101Throw.ArgumentOutOfRange(nameof(genericParameterCount)); 1127Throw.ArgumentOutOfRange(nameof(genericArgumentCount)); 1150Throw.ArgumentOutOfRange(nameof(parameterIndex)); 1166Throw.ArgumentOutOfRange(nameof(parameterIndex)); 1229Throw.InvalidArgument_Handle(nameof(type)); 1278Throw.ArgumentOutOfRange(nameof(rank)); 1283Throw.ArgumentNull(nameof(sizes)); 1292Throw.ArgumentOutOfRange(nameof(rank)); 1314Throw.ArgumentOutOfRange(nameof(rank)); 1381Throw.SignatureNotVarArg();
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (9)
46Throw.InvalidOperation_LabelNotMarked(Label.Id); 152Throw.InvalidOperation_LabelNotMarked(label.Id); 162Throw.ArgumentNull(parameterName); 167Throw.LabelDoesntBelongToBuilder(parameterName); 210Throw.InvalidArgument_Handle(nameof(catchType)); 268Throw.InvalidOperation(SR.SwitchInstructionEncoderTooFewBranches); 276Throw.InvalidOperation(SR.SwitchInstructionEncoderTooManyBranches); 387Throw.InvalidOperation(SR.Format(SR.InvalidExceptionRegionBounds, tryStart, tryEnd)); 392Throw.InvalidOperation(SR.Format(SR.InvalidExceptionRegionBounds, handlerStart, handlerEnd));
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (11)
214Throw.InvalidOperation(SR.MethodHasNoExceptionRegions); 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)); 238Throw.InvalidArgument_Handle(nameof(catchType)); 247Throw.ArgumentOutOfRange(nameof(filterOffset));
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (10)
39Throw.BuilderArgumentNull(); 106Throw.InvalidArgument_Handle(nameof(methodHandle)); 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)); 487Throw.ControlFlowBuilderNotAvailable();
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (7)
17Throw.BuilderArgumentNull(); 79Throw.ArgumentOutOfRange(nameof(codeSize)); 84Throw.ArgumentOutOfRange(nameof(maxStack)); 89Throw.ArgumentOutOfRange(nameof(exceptionRegionCount)); 172Throw.ArgumentOutOfRange(nameof(maxStack)); 183Throw.ArgumentNull(nameof(instructionEncoder)); 189Throw.ArgumentOutOfRange(nameof(instructionEncoder), SR.TooManyExceptionRegions);
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (2)
58Throw.ArgumentNull(nameof(baseReader)); 78Throw.ArgumentNull(nameof(baseHeapSizes));
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (16)
84Throw.HeapSizeLimitExceeded(HeapIndex.UserString); 89Throw.ArgumentOutOfRange(nameof(userStringHeapStartOffset)); 94Throw.ArgumentOutOfRange(nameof(stringHeapStartOffset)); 99Throw.ArgumentOutOfRange(nameof(blobHeapStartOffset)); 104Throw.ArgumentOutOfRange(nameof(guidHeapStartOffset)); 147Throw.ArgumentOutOfRange(nameof(byteCount)); 170Throw.ArgumentOutOfRange(nameof(heap)); 191Throw.ArgumentNull(nameof(value)); 212Throw.ArgumentNull(nameof(value)); 240Throw.ArgumentNull(nameof(value)); 276Throw.ArgumentNull(nameof(value)); 322Throw.ArgumentNull(nameof(value)); 445Throw.ArgumentNull(nameof(value)); 478Throw.ArgumentOutOfRange(nameof(length)); 501Throw.ArgumentNull(nameof(value)); 524Throw.HeapSizeLimitExceeded(HeapIndex.UserString);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (22)
142Throw.ArgumentOutOfRange(nameof(rowCount)); 367Throw.ArgumentOutOfRange(nameof(generation)); 372Throw.InvalidOperation(SR.ModuleAlreadyAdded); 397Throw.ArgumentNull(nameof(version)); 402Throw.InvalidOperation(SR.AssemblyAlreadyAdded); 428Throw.ArgumentNull(nameof(version)); 803Throw.ArgumentOutOfRange(nameof(sequenceNumber)); 837Throw.ArgumentOutOfRange(nameof(index)); 956Throw.ArgumentOutOfRange(nameof(offset)); 995Throw.ArgumentOutOfRange(nameof(bodyOffset)); 1300Throw.ArgumentOutOfRange(nameof(index)); 1476Throw.InvalidOperation_TableNotSorted(TableIndex.ClassLayout); 1487Throw.InvalidOperation_TableNotSorted(TableIndex.FieldLayout); 1499Throw.InvalidOperation_TableNotSorted(TableIndex.FieldRva); 1526Throw.InvalidOperation_TableNotSorted(TableIndex.GenericParam); 1536Throw.InvalidOperation_TableNotSorted(TableIndex.GenericParamConstraint); 1547Throw.InvalidOperation_TableNotSorted(TableIndex.ImplMap); 1558Throw.InvalidOperation_TableNotSorted(TableIndex.InterfaceImpl); 1569Throw.InvalidOperation_TableNotSorted(TableIndex.MethodImpl); 1580Throw.InvalidOperation_TableNotSorted(TableIndex.NestedClass); 1617Throw.InvalidOperation_TableNotSorted(TableIndex.LocalScope); 1627Throw.InvalidOperation_TableNotSorted(TableIndex.StateMachineMethod);
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (14)
24Throw.ArgumentNull(nameof(reader)); 29Throw.TableIndexOutOfRange(); 44Throw.ArgumentNull(nameof(reader)); 118Throw.ArgumentNull(nameof(reader)); 199Throw.ArgumentNull(nameof(reader)); 214Throw.ArgumentNull(nameof(reader)); 247Throw.ArgumentNull(nameof(reader)); 261Throw.ArgumentNull(nameof(reader)); 275Throw.ArgumentNull(nameof(reader)); 289Throw.ArgumentNull(nameof(reader)); 313Throw.ArgumentNull(nameof(reader)); 338Throw.ArgumentNull(nameof(reader)); 363Throw.ArgumentNull(nameof(reader)); 384Throw.ArgumentNull(nameof(reader));
System\Reflection\Metadata\Ecma335\MetadataRootBuilder.cs (5)
58Throw.ArgumentNull(nameof(tablesAndHeaps)); 66Throw.InvalidArgument(SR.MetadataVersionTooLong, nameof(metadataVersion)); 101Throw.ArgumentNull(nameof(builder)); 106Throw.ArgumentOutOfRange(nameof(methodBodyStreamRva)); 111Throw.ArgumentOutOfRange(nameof(mappedFieldDataStreamRva));
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (1)
408Throw.ArgumentOutOfRange(nameof(index));
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (8)
45Throw.HeapHandleRequired(); 84Throw.EntityOrUserStringHandleRequired(); 110Throw.InvalidArgument_UnexpectedHandleKind(handle.Kind); 140Throw.HeapHandleRequired(); 204Throw.EntityOrUserStringHandleRequired(); 293Throw.InvalidToken(); 307Throw.InvalidToken(); 334Throw.TableIndexOutOfRange();
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (3)
55Throw.ArgumentNull(nameof(tablesAndHeaps)); 73Throw.ArgumentNull(nameof(typeSystemRowCounts)); 129Throw.ArgumentNull(nameof(builder));
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (1)
36Throw.ArgumentNull(nameof(provider));
System\Reflection\Metadata\EntityHandle.cs (1)
39Throw.InvalidCast();
System\Reflection\Metadata\Internal\CustomAttributeTypeTag.cs (1)
28Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\HasConstantTag.cs (1)
30Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\HasCustomAttributeTag.cs (1)
108Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\HasDeclSecurityTag.cs (1)
30Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\HasFieldMarshalTag.cs (1)
28Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\HasSemanticsTag.cs (1)
28Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\ImplementationTag.cs (1)
30Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\MemberForwardedTag.cs (1)
28Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\MemberRefParentTag.cs (1)
39Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\MethodDefOrRefTag.cs (1)
28Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
54Throw.InvalidHandle();
System\Reflection\Metadata\Internal\ResolutionScopeTag.cs (1)
32Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\Tables.cs (13)
581Throw.TableNotSorted(TableIndex.InterfaceImpl); 708Throw.TableNotSorted(TableIndex.Constant); 889Throw.TableNotSorted(TableIndex.FieldMarshal); 955Throw.TableNotSorted(TableIndex.DeclSecurity); 1035Throw.TableNotSorted(TableIndex.ClassLayout); 1099Throw.TableNotSorted(TableIndex.FieldLayout); 1457Throw.TableNotSorted(TableIndex.MethodSemantics); 1554Throw.TableNotSorted(TableIndex.MethodImpl); 1703Throw.TableNotSorted(TableIndex.ImplMap); 1772Throw.TableNotSorted(TableIndex.FieldRva); 2340Throw.TableNotSorted(TableIndex.NestedClass); 2412Throw.TableNotSorted(TableIndex.GenericParam); 2553Throw.TableNotSorted(TableIndex.GenericParamConstraint);
System\Reflection\Metadata\Internal\TypeDefOrRefTag.cs (1)
31Throw.InvalidCodedIndex();
System\Reflection\Metadata\Internal\TypeOrMethodDefTag.cs (1)
28Throw.InvalidCodedIndex();
System\Reflection\Metadata\MetadataReader.cs (3)
81Throw.ArgumentOutOfRange(nameof(length)); 86Throw.ArgumentNull(nameof(metadata)); 93Throw.InvalidArgument(SR.MetadataStringDecoderEncodingMustBeUtf8, nameof(utf8Decoder));
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
61Throw.ArgumentNull(nameof(assemblyFile));
System\Reflection\Metadata\MetadataReaderProvider.cs (3)
75Throw.ArgumentNull(nameof(start)); 108Throw.ArgumentNull(nameof(image)); 167Throw.ArgumentNull(nameof(stream));
System\Reflection\Metadata\MetadataStringComparer.cs (4)
67Throw.ValueArgumentNull(); 82Throw.ValueArgumentNull(); 102Throw.ValueArgumentNull(); 117Throw.ValueArgumentNull();
System\Reflection\Metadata\MetadataStringDecoder.cs (1)
48Throw.ArgumentNull(nameof(encoding));
System\Reflection\Metadata\PEReaderExtensions.cs (2)
28Throw.ArgumentNull(nameof(peReader)); 83Throw.ArgumentNull(nameof(peReader));
System\Reflection\Metadata\PortablePdb\DocumentNameBlobHandle.cs (1)
46Throw.InvalidCast();
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (14)
41Throw.InvalidCast(); 51Throw.InvalidCast(); 124Throw.InvalidCast(); 134Throw.InvalidCast(); 219Throw.InvalidCast(); 229Throw.InvalidCast(); 302Throw.InvalidCast(); 312Throw.InvalidCast(); 385Throw.InvalidCast(); 395Throw.InvalidCast(); 468Throw.InvalidCast(); 478Throw.InvalidCast(); 551Throw.InvalidCast(); 561Throw.InvalidCast();
System\Reflection\Metadata\PortablePdb\HasCustomDebugInformationTag.cs (1)
122Throw.InvalidCodedIndex();
System\Reflection\Metadata\PortablePdb\SequencePointCollection.cs (5)
142Throw.SequencePointValueOutOfRange(); 153Throw.SequencePointValueOutOfRange(); 164Throw.SequencePointValueOutOfRange(); 175Throw.SequencePointValueOutOfRange(); 186Throw.InvalidHandle();
System\Reflection\Metadata\PortablePdb\Tables.Debug.cs (4)
156Throw.TableNotSorted(TableIndex.LocalScope); 206Throw.ValueOverflow(); 356Throw.TableNotSorted(TableIndex.StateMachineMethod); 465Throw.TableNotSorted(TableIndex.CustomDebugInformation);
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (2)
40Throw.IndexOutOfRange(); 148Throw.IndexOutOfRange();
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (56)
41Throw.InvalidCast(); 51Throw.InvalidCast(); 124Throw.InvalidCast(); 134Throw.InvalidCast(); 207Throw.InvalidCast(); 217Throw.InvalidCast(); 290Throw.InvalidCast(); 300Throw.InvalidCast(); 385Throw.InvalidCast(); 395Throw.InvalidCast(); 468Throw.InvalidCast(); 478Throw.InvalidCast(); 551Throw.InvalidCast(); 561Throw.InvalidCast(); 634Throw.InvalidCast(); 644Throw.InvalidCast(); 717Throw.InvalidCast(); 727Throw.InvalidCast(); 800Throw.InvalidCast(); 810Throw.InvalidCast(); 883Throw.InvalidCast(); 893Throw.InvalidCast(); 966Throw.InvalidCast(); 976Throw.InvalidCast(); 1049Throw.InvalidCast(); 1059Throw.InvalidCast(); 1132Throw.InvalidCast(); 1142Throw.InvalidCast(); 1215Throw.InvalidCast(); 1225Throw.InvalidCast(); 1298Throw.InvalidCast(); 1308Throw.InvalidCast(); 1381Throw.InvalidCast(); 1391Throw.InvalidCast(); 1464Throw.InvalidCast(); 1474Throw.InvalidCast(); 1547Throw.InvalidCast(); 1557Throw.InvalidCast(); 1653Throw.InvalidCast(); 1663Throw.InvalidCast(); 1748Throw.InvalidCast(); 1758Throw.InvalidCast(); 1831Throw.InvalidCast(); 1841Throw.InvalidCast(); 1914Throw.InvalidCast(); 1924Throw.InvalidCast(); 1997Throw.InvalidCast(); 2007Throw.InvalidCast(); 2080Throw.InvalidCast(); 2090Throw.InvalidCast(); 2167Throw.InvalidCast(); 2354Throw.InvalidCast(); 2467Throw.TooManySubnamespaces(); 2484Throw.InvalidCast(); 2616Throw.InvalidCast(); 2705Throw.InvalidCast();
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (9)
62Throw.ArgumentNull(nameof(dataSerializer)); 108Throw.ArgumentNull(nameof(pdbPath)); 113Throw.ArgumentOutOfRange(nameof(age)); 119Throw.InvalidArgument(SR.ExpectedNonEmptyString, nameof(pdbPath)); 124Throw.ArgumentOutOfRange(nameof(portablePdbVersion)); 175Throw.ArgumentNull(nameof(algorithmName)); 180Throw.ArgumentEmptyString(nameof(algorithmName)); 185Throw.ArgumentNull(nameof(checksum)); 190Throw.ArgumentEmptyArray(nameof(checksum));
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (2)
24Throw.ArgumentNull(nameof(debugMetadata)); 29Throw.ArgumentOutOfRange(nameof(portablePdbVersion));
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (6)
53Throw.ArgumentNull(nameof(header)); 57Throw.ArgumentNull(nameof(metadataRootBuilder)); 61Throw.ArgumentNull(nameof(ilStream)); 66Throw.ArgumentOutOfRange(nameof(strongNameSignatureSize)); 232Throw.ArgumentNull(nameof(peImage)); 236Throw.ArgumentNull(nameof(signatureProvider));
System\Reflection\PortableExecutable\PEBinaryReader.cs (2)
119Throw.ImageTooSmall(); 131Throw.ImageTooSmallOrContainsInvalidOffsetOrCount();
System\Reflection\PortableExecutable\PEBuilder.cs (2)
30Throw.ArgumentNull(nameof(name)); 65Throw.ArgumentNull(nameof(header));
System\Reflection\PortableExecutable\PEHeaderBuilder.cs (2)
69Throw.ArgumentOutOfRange(nameof(fileAlignment)); 74Throw.ArgumentOutOfRange(nameof(sectionAlignment));
System\Reflection\PortableExecutable\PEHeaders.cs (1)
77Throw.ArgumentNull(nameof(peStream));
System\Reflection\PortableExecutable\PEReader.cs (11)
78Throw.ArgumentNull(nameof(peImage)); 159Throw.ArgumentNull(nameof(peStream)); 234Throw.ArgumentNull(nameof(peImage)); 280Throw.PEReaderDisposed(); 283Throw.InvalidOperation_PEImageNotAvailable(); 486Throw.ArgumentOutOfRange(nameof(relativeVirtualAddress)); 519Throw.ArgumentNull(nameof(sectionName)); 610Throw.InvalidArgument(SR.Format(SR.UnexpectedDebugDirectoryType, nameof(DebugDirectoryEntryType.CodeView)), nameof(entry)); 650Throw.InvalidArgument(SR.Format(SR.UnexpectedDebugDirectoryType, nameof(DebugDirectoryEntryType.PdbChecksum)), nameof(entry)); 716Throw.ArgumentNull(nameof(peImagePath)); 720Throw.ArgumentNull(nameof(pdbFileStreamProvider));
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (1)
38Throw.InvalidArgument(SR.Format(SR.UnexpectedDebugDirectoryType, nameof(DebugDirectoryEntryType.EmbeddedPortablePdb)), nameof(entry));