27 references to Format
System.Resources.Extensions (27)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (15)
226
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesNameInvalidOffset, r));
322
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataPos));
397
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourcesIndexTooLong, index));
420
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataOffset));
434
throw new EndOfStreamException(SR.
Format
(SR.BadImageFormat_ResourceNameCorrupted_NameIndex, index));
440
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataOffset));
461
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataPos));
487
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_ResourceNotString_Type, FindType(typeIndex).FullName));
500
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_ResourceNotString_Type, typeString));
708
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
715
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
722
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
736
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
748
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
832
throw new NotSupportedException(SR.
Format
(SR.NotSupported_WrongResourceReader_Type, readerType));
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (1)
198
throw new ArgumentException(SR.
Format
(SR.NotSupported_WrongResourceReader_Type, reader.GetType()), nameof(reader));
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (1)
83
_types[typeName.AssemblyQualifiedName] = type ?? throw new SerializationException(SR.
Format
(SR.Serialization_MissingType, typeName.AssemblyQualifiedName));
System\Resources\Extensions\BinaryFormat\Deserializer\ClassRecordDeserializer.cs (2)
41
throw new SerializationException(SR.
Format
(SR.Serialization_TypeNotSerializable, type));
95
throw new SerializationException(SR.
Format
(SR.Serialization_IObjectReferenceOnlyPrimivite, type));
System\Resources\Extensions\BinaryFormat\Deserializer\PendingSerializationInfo.cs (1)
80
throw new SerializationException(SR.
Format
(SR.Serialization_MissingCtor, type.FullName));
System\Resources\Extensions\DeserializingResourceReader.cs (6)
136
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, length));
155
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, length));
165
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, length));
174
throw new TypeLoadException(SR.
Format
(SR.TypeLoadException_CannotLoadConverter, type));
188
throw new TypeLoadException(SR.
Format
(SR.TypeLoadException_CannotLoadConverter, type));
200
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, length));
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
95
throw new TypeLoadException(SR.
Format
(SR.TypeLoadException_CannotLoadConverter, primitiveType));