103 references to SR
System.Resources.Extensions (103)
BinaryReaderExtensions.cs (1)
21throw new FormatException(SR.Format_Bad7BitInt32);
src\libraries\Common\src\System\Resources\ResourceWriter.cs (12)
75throw new ArgumentException(SR.Argument_StreamNotWritable); 95throw new InvalidOperationException(SR.InvalidOperation_ResourceWriterSaved); 115throw new InvalidOperationException(SR.InvalidOperation_ResourceWriterSaved); 144throw new InvalidOperationException(SR.InvalidOperation_ResourceWriterSaved); 164throw new ArgumentException(SR.NotSupported_UnseekableStream); 184throw new InvalidOperationException(SR.InvalidOperation_ResourceWriterSaved); 195throw new InvalidOperationException(SR.InvalidOperation_ResourceWriterSaved); 264throw new InvalidOperationException(SR.InvalidOperation_ResourceWriterSaved); 502throw new PlatformNotSupportedException(SR.NotSupported_BinarySerializedResources); 606throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 616throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 636throw new PlatformNotSupportedException(SR.NotSupported_BinarySerializedResources);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (67)
132throw new ArgumentException(SR.Argument_StreamNotReadable); 190throw new BadImageFormatException(SR.BadImageFormat_NegativeStringLength); 228throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesNameInvalidOffset, r)); 241throw new InvalidOperationException(SR.ResourceReaderIsClosed); 324throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesDataInvalidOffset, dataPos)); 345throw new BadImageFormatException(SR.BadImageFormat_NegativeStringLength); 354throw new BadImageFormatException(SR.BadImageFormat_ResourcesNameTooLong); 370throw new BadImageFormatException(SR.BadImageFormat_ResourceNameCorrupted); 393throw new BadImageFormatException(SR.BadImageFormat_NegativeStringLength); 399throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourcesIndexTooLong, index)); 422throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesDataInvalidOffset, dataOffset)); 436throw new EndOfStreamException(SR.Format(SR.BadImageFormat_ResourceNameCorrupted_NameIndex, index)); 442throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesDataInvalidOffset, dataOffset)); 463throw new FormatException(SR.Format(SR.BadImageFormat_ResourcesDataInvalidOffset, dataPos)); 489throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResourceNotString_Type, FindType(typeIndex).FullName)); 502throw new InvalidOperationException(SR.Format(SR.InvalidOperation_ResourceNotString_Type, typeString)); 551throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch, eof); 555throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch, e); 633throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch, eof); 637throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch, e); 710throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, len)); 717throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, len)); 724throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, len)); 738throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, len)); 750throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, len)); 764throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch); 792throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted, eof); 796throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted, e); 810throw new ArgumentException(SR.Resources_StreamNotValid); 819throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 834throw new NotSupportedException(SR.Format(SR.NotSupported_WrongResourceReader_Type, readerType)); 848throw new ArgumentException(SR.Format(SR.Arg_ResourceFileUnsupportedVersion, CurrentVersion, version)); 854throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 862throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 904throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 925throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 936throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 952throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 961throw new BadImageFormatException(SR.BadImageFormat_ResourcesHeaderCorrupted); 972throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed); 977throw new BadImageFormatException(SR.BadImageFormat_InvalidType); 1091if (_currentName == ENUM_DONE) throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 1092if (!_currentIsValid) throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 1093if (_reader._resCache == null) throw new InvalidOperationException(SR.ResourceReaderIsClosed); 1108if (_currentName == ENUM_DONE) throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 1109if (!_currentIsValid) throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 1110if (_reader._resCache == null) throw new InvalidOperationException(SR.ResourceReaderIsClosed); 1145if (_currentName == ENUM_DONE) throw new InvalidOperationException(SR.InvalidOperation_EnumEnded); 1146if (!_currentIsValid) throw new InvalidOperationException(SR.InvalidOperation_EnumNotStarted); 1147if (_reader._resCache == null) throw new InvalidOperationException(SR.ResourceReaderIsClosed); 1159if (_reader._resCache == null) throw new InvalidOperationException(SR.ResourceReaderIsClosed);
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (4)
200_defaultReader = reader as DeserializingResourceReader ?? throw new ArgumentException(SR.Format(SR.NotSupported_WrongResourceReader_Type, reader.GetType()), nameof(reader)); 240throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet); 281throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet);
System\Resources\Extensions\DeserializingResourceReader.cs (15)
131throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, length)); 150throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, length)); 160throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, length)); 169throw new TypeLoadException(SR.Format(SR.TypeLoadException_CannotLoadConverter, type)); 183throw new TypeLoadException(SR.Format(SR.TypeLoadException_CannotLoadConverter, type)); 195throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResourceDataLengthInvalid, length)); 220throw new BadImageFormatException(SR.BadImageFormat_TypeMismatch); 226throw new BadImageFormatException(SR.Format(SR.BadImageFormat_ResType_SerBlobMismatch, type.FullName, value.GetType().FullName));
System\Resources\Extensions\PreserializedResourceWriter.cs (4)
104throw new TypeLoadException(SR.Format(SR.TypeLoadException_CannotLoadConverter, primitiveType)); 205throw new ArgumentException(SR.NotSupported_UnseekableStream); 261throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength);