23 references to Format
System.Resources.Extensions (23)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (15)
228
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesNameInvalidOffset, r));
324
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataPos));
399
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourcesIndexTooLong, index));
422
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataOffset));
436
throw new EndOfStreamException(SR.
Format
(SR.BadImageFormat_ResourceNameCorrupted_NameIndex, index));
442
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataOffset));
463
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataPos));
489
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_ResourceNotString_Type, FindType(typeIndex).FullName));
502
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_ResourceNotString_Type, typeString));
710
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
717
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
724
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
738
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
750
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
834
throw new NotSupportedException(SR.
Format
(SR.NotSupported_WrongResourceReader_Type, readerType));
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (1)
200
_defaultReader = reader as DeserializingResourceReader ?? throw new ArgumentException(SR.
Format
(SR.NotSupported_WrongResourceReader_Type, reader.GetType()), nameof(reader));
System\Resources\Extensions\DeserializingResourceReader.cs (6)
131
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, length));
150
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, length));
160
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, length));
169
throw new TypeLoadException(SR.
Format
(SR.TypeLoadException_CannotLoadConverter, type));
183
throw new TypeLoadException(SR.
Format
(SR.TypeLoadException_CannotLoadConverter, type));
195
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, length));
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
104
throw new TypeLoadException(SR.
Format
(SR.TypeLoadException_CannotLoadConverter, primitiveType));