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