27 references to Format
System.Resources.Extensions (27)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (15)
222
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesNameInvalidOffset, r));
318
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataPos));
393
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourcesIndexTooLong, index));
416
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataOffset));
430
throw new EndOfStreamException(SR.
Format
(SR.BadImageFormat_ResourceNameCorrupted_NameIndex, index));
436
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataOffset));
457
throw new FormatException(SR.
Format
(SR.BadImageFormat_ResourcesDataInvalidOffset, dataPos));
483
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_ResourceNotString_Type, FindType(typeIndex).FullName));
496
throw new InvalidOperationException(SR.
Format
(SR.InvalidOperation_ResourceNotString_Type, typeString));
704
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
711
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
718
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
732
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
744
throw new BadImageFormatException(SR.
Format
(SR.BadImageFormat_ResourceDataLengthInvalid, len));
828
throw new NotSupportedException(SR.
Format
(SR.NotSupported_WrongResourceReader_Type, readerType));
src\runtime\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));
90
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));