41 references to Format
System.Reflection.Metadata (41)
System\Reflection\Internal\Utilities\ExceptionUtilities.cs (1)
15
return new InvalidOperationException(SR.
Format
(SR.UnexpectedValueUnknownType, value));
System\Reflection\Metadata\BlobContentId.cs (2)
51
throw new ArgumentException(SR.
Format
(SR.UnexpectedArrayLength, Size), nameof(id));
90
throw new ArgumentException(SR.
Format
(SR.HashTooShort, minHashSize), nameof(hashCode));
System\Reflection\Metadata\BlobWriterImpl.cs (2)
216
throw new ArgumentException(SR.
Format
(SR.InvalidConstantValueOfType, type));
289
throw new ArgumentException(SR.
Format
(SR.InvalidConstantValueOfType, type));
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (2)
73
throw new ArgumentException(SR.
Format
(SR.ExpectedListOfSize, MetadataTokens.TableCount), nameof(baseTableRowCounts));
83
throw new ArgumentException(SR.
Format
(SR.ExpectedListOfSize, MetadataTokens.HeapCount), nameof(baseTableRowCounts));
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
109
throw new ArgumentException(SR.
Format
(SR.ValueMustBeMultiple, BlobUtilities.SizeOfGuid), nameof(guidHeapStartOffset));
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (1)
428
throw new ArgumentOutOfRangeException(nameof(typeHandle), SR.
Format
(SR.UnexpectedHandleKind, typeHandle.Kind));
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (3)
78
throw new ArgumentException(SR.
Format
(SR.ExpectedArrayOfSize, MetadataTokens.TableCount), nameof(typeSystemRowCounts));
90
throw new ArgumentOutOfRangeException(nameof(typeSystemRowCounts), SR.
Format
(SR.RowCountOutOfRange, i));
95
throw new ArgumentException(SR.
Format
(SR.RowCountMustBeZero, i), nameof(typeSystemRowCounts));
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (1)
130
throw new BadImageFormatException(SR.
Format
(SR.UnexpectedSignatureTypeCode, typeCode));
System\Reflection\Metadata\IL\ILOpCodeExtensions.cs (3)
92
throw new ArgumentException(SR.
Format
(SR.UnexpectedOpCode, opCode), nameof(opCode));
164
throw new ArgumentException(SR.
Format
(SR.UnexpectedOpCode, opCode), nameof(opCode));
236
throw new ArgumentException(SR.
Format
(SR.UnexpectedOpCode, opCode), nameof(opCode));
System\Reflection\Metadata\IL\MethodBodyBlock.cs (3)
121
throw new BadImageFormatException(SR.
Format
(SR.InvalidMethodHeader1, headByte));
149
throw new BadImageFormatException(SR.
Format
(SR.InvalidLocalSignatureToken, unchecked((uint)localSignatureToken)));
162
throw new BadImageFormatException(SR.
Format
(SR.InvalidSehHeader, sehHeader));
System\Reflection\Metadata\Internal\MetadataWriterUtilities.cs (1)
89
throw new ArgumentException(SR.
Format
(SR.InvalidConstantValueOfType, value.GetType()), nameof(value));
System\Reflection\Metadata\MetadataReader.cs (5)
136
throw new BadImageFormatException(SR.
Format
(SR.ModuleTableInvalidNumberOfRows, this.ModuleTable.NumberOfRows));
467
throw new BadImageFormatException(SR.
Format
(SR.UnknownTables, presentTables));
509
throw new BadImageFormatException(SR.
Format
(SR.InvalidRowCount, rowCount));
539
throw new BadImageFormatException(SR.
Format
(SR.InvalidEntryPointToken, entryPointToken));
549
throw new BadImageFormatException(SR.
Format
(SR.UnknownTables, externalTableMask));
System\Reflection\Metadata\PEReaderExtensions.cs (1)
34
throw new BadImageFormatException(SR.
Format
(SR.InvalidMethodRva, relativeVirtualAddress));
System\Reflection\Metadata\PortablePdb\ImportDefinitionCollection.cs (1)
123
throw new BadImageFormatException(SR.
Format
(SR.InvalidImportDefinitionKind, kind));
System\Reflection\Metadata\TypeNameParserHelpers.cs (2)
366
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_MaxNodesExceeded, limit));
445
throw new InvalidOperationException(SR.
Format
(SR.Arg_NotSimpleTypeName, fullName));
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (1)
118
_ => throw new ArgumentException(SR.
Format
(SR.UnknownSectionName, name), nameof(name)),
System\Reflection\PortableExecutable\PEBuilder.cs (1)
79
throw new InvalidOperationException(SR.
Format
(SR.MustNotReturnNull, nameof(CreateSections)));
System\Reflection\PortableExecutable\PEReader.cs (2)
608
Throw.InvalidArgument(SR.
Format
(SR.UnexpectedDebugDirectoryType, nameof(DebugDirectoryEntryType.CodeView)), nameof(entry));
648
Throw.InvalidArgument(SR.
Format
(SR.UnexpectedDebugDirectoryType, nameof(DebugDirectoryEntryType.PdbChecksum)), nameof(entry));
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (3)
38
Throw.InvalidArgument(SR.
Format
(SR.UnexpectedDebugDirectoryType, nameof(DebugDirectoryEntryType.EmbeddedPortablePdb)), nameof(entry));
58
throw new BadImageFormatException(SR.
Format
(SR.UnsupportedFormatVersion, PortablePdbVersions.Format(formatVersion)));
64
throw new BadImageFormatException(SR.
Format
(SR.UnsupportedFormatVersion, PortablePdbVersions.Format(embeddedBlobVersion)));
System\Reflection\Throw.cs (5)
35
throw new ArgumentException(SR.
Format
(SR.UnexpectedHandleKind, kind));
71
throw new InvalidOperationException(SR.
Format
(SR.LabelNotMarked, id));
209
throw new BadImageFormatException(SR.
Format
(SR.MetadataTableNotSorted, tableIndex));
215
throw new InvalidOperationException(SR.
Format
(SR.MetadataTableNotSorted, tableIndex));
245
throw new ImageFormatLimitationException(SR.
Format
(SR.HeapSizeLimitExceeded, heap));