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