103 references to SR
System.Resources.Extensions (103)
BinaryReaderExtensions.cs (1)
21
throw new FormatException(
SR
.Format_Bad7BitInt32);
src\libraries\Common\src\System\Resources\ResourceWriter.cs (12)
75
throw new ArgumentException(
SR
.Argument_StreamNotWritable);
95
throw new InvalidOperationException(
SR
.InvalidOperation_ResourceWriterSaved);
115
throw new InvalidOperationException(
SR
.InvalidOperation_ResourceWriterSaved);
144
throw new InvalidOperationException(
SR
.InvalidOperation_ResourceWriterSaved);
164
throw new ArgumentException(
SR
.NotSupported_UnseekableStream);
184
throw new InvalidOperationException(
SR
.InvalidOperation_ResourceWriterSaved);
195
throw new InvalidOperationException(
SR
.InvalidOperation_ResourceWriterSaved);
264
throw new InvalidOperationException(
SR
.InvalidOperation_ResourceWriterSaved);
502
throw new PlatformNotSupportedException(
SR
.NotSupported_BinarySerializedResources);
606
throw new ArgumentException(
SR
.ArgumentOutOfRange_StreamLength);
616
throw new ArgumentException(
SR
.ArgumentOutOfRange_StreamLength);
636
throw new PlatformNotSupportedException(
SR
.NotSupported_BinarySerializedResources);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (67)
132
throw new ArgumentException(
SR
.Argument_StreamNotReadable);
190
throw new BadImageFormatException(
SR
.BadImageFormat_NegativeStringLength);
228
throw new FormatException(
SR
.Format(
SR
.BadImageFormat_ResourcesNameInvalidOffset, r));
241
throw new InvalidOperationException(
SR
.ResourceReaderIsClosed);
324
throw new FormatException(
SR
.Format(
SR
.BadImageFormat_ResourcesDataInvalidOffset, dataPos));
345
throw new BadImageFormatException(
SR
.BadImageFormat_NegativeStringLength);
354
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesNameTooLong);
370
throw new BadImageFormatException(
SR
.BadImageFormat_ResourceNameCorrupted);
393
throw new BadImageFormatException(
SR
.BadImageFormat_NegativeStringLength);
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));
551
throw new BadImageFormatException(
SR
.BadImageFormat_TypeMismatch, eof);
555
throw new BadImageFormatException(
SR
.BadImageFormat_TypeMismatch, e);
633
throw new BadImageFormatException(
SR
.BadImageFormat_TypeMismatch, eof);
637
throw new BadImageFormatException(
SR
.BadImageFormat_TypeMismatch, e);
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));
764
throw new BadImageFormatException(
SR
.BadImageFormat_TypeMismatch);
792
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesHeaderCorrupted, eof);
796
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesHeaderCorrupted, e);
810
throw new ArgumentException(
SR
.Resources_StreamNotValid);
819
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesHeaderCorrupted);
834
throw new NotSupportedException(
SR
.Format(
SR
.NotSupported_WrongResourceReader_Type, readerType));
848
throw new ArgumentException(
SR
.Format(
SR
.Arg_ResourceFileUnsupportedVersion, CurrentVersion, version));
854
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesHeaderCorrupted);
862
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesHeaderCorrupted);
904
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesHeaderCorrupted);
925
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesHeaderCorrupted);
936
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesHeaderCorrupted);
952
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesHeaderCorrupted);
961
throw new BadImageFormatException(
SR
.BadImageFormat_ResourcesHeaderCorrupted);
972
throw new NotSupportedException(
SR
.ResourceManager_ReflectionNotAllowed);
977
throw new BadImageFormatException(
SR
.BadImageFormat_InvalidType);
1091
if (_currentName == ENUM_DONE) throw new InvalidOperationException(
SR
.InvalidOperation_EnumEnded);
1092
if (!_currentIsValid) throw new InvalidOperationException(
SR
.InvalidOperation_EnumNotStarted);
1093
if (_reader._resCache == null) throw new InvalidOperationException(
SR
.ResourceReaderIsClosed);
1108
if (_currentName == ENUM_DONE) throw new InvalidOperationException(
SR
.InvalidOperation_EnumEnded);
1109
if (!_currentIsValid) throw new InvalidOperationException(
SR
.InvalidOperation_EnumNotStarted);
1110
if (_reader._resCache == null) throw new InvalidOperationException(
SR
.ResourceReaderIsClosed);
1145
if (_currentName == ENUM_DONE) throw new InvalidOperationException(
SR
.InvalidOperation_EnumEnded);
1146
if (!_currentIsValid) throw new InvalidOperationException(
SR
.InvalidOperation_EnumNotStarted);
1147
if (_reader._resCache == null) throw new InvalidOperationException(
SR
.ResourceReaderIsClosed);
1159
if (_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));
240
throw new ObjectDisposedException(null,
SR
.ObjectDisposed_ResourceSet);
281
throw new ObjectDisposedException(null,
SR
.ObjectDisposed_ResourceSet);
System\Resources\Extensions\DeserializingResourceReader.cs (15)
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));
220
throw new BadImageFormatException(
SR
.BadImageFormat_TypeMismatch);
226
throw new BadImageFormatException(
SR
.Format(
SR
.BadImageFormat_ResType_SerBlobMismatch, type.FullName, value.GetType().FullName));
System\Resources\Extensions\PreserializedResourceWriter.cs (4)
104
throw new TypeLoadException(
SR
.Format(
SR
.TypeLoadException_CannotLoadConverter, primitiveType));
205
throw new ArgumentException(
SR
.NotSupported_UnseekableStream);
261
throw new ArgumentException(
SR
.ArgumentOutOfRange_StreamLength);