159 references to SR
System.Runtime.Serialization.Formatters (159)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58
throw new ArgumentException(
SR
.Arg_HTCapacityOverflow);
System\Runtime\Serialization\Formatter.cs (1)
42
throw new SerializationException(
SR
.Serialization_NoID);
System\Runtime\Serialization\Formatters\Binary\BinaryAssemblyInfo.cs (2)
30
throw new SerializationException(
SR
.Format(
SR
.Serialization_AssemblyNotFound, _assemblyString));
System\Runtime\Serialization\Formatters\Binary\BinaryFormatter.Core.cs (4)
18
throw new NotSupportedException(
SR
.BinaryFormatter_SerializationDisallowed);
25
throw new SerializationException(
SR
.Serialization_Stream);
52
throw new SerializationException(
SR
.Serialization_CorruptedStream, e);
66
throw new NotSupportedException(
SR
.BinaryFormatter_SerializationDisallowed);
System\Runtime\Serialization\Formatters\Binary\BinaryFormatterWriter.cs (2)
447
default: throw new SerializationException(
SR
.Format(
SR
.Serialization_TypeCode, code.ToString()));
System\Runtime\Serialization\Formatters\Binary\BinaryObjectInfo.cs (17)
110
throw new SerializationException(
SR
.Format(
SR
.Serialization_NonSerType, _objectType.FullName, _objectType.Assembly.FullName));
296
throw new SerializationException(
SR
.Serialization_ISerializableMemberInfo);
515
throw new SerializationException(
SR
.Format(
SR
.Serialization_MemberInfo, _objectType + " " + name));
520
throw new SerializationException(
SR
.Format(
SR
.Serialization_NoMemberInfo, _objectType + " " + name));
539
throw new SerializationException(
SR
.Format(
SR
.Serialization_ISerializableTypes, _objectType + " " + name));
592
throw new SerializationException(
SR
.Serialization_CorruptedStream);
604
throw new SerializationException(
SR
.Serialization_CorruptedStream);
662
throw new SerializationException(
SR
.Format(
SR
.Serialization_ISerializableTypes, objectType));
715
throw new SerializationException(
SR
.Format(
SR
.Serialization_MissingMember, _cache._memberNames[i], objectType, typeof(OptionalFieldAttribute).FullName));
732
throw new SerializationException(
SR
.Format(
SR
.Serialization_SerMemberInfo, objMember.GetType()));
System\Runtime\Serialization\Formatters\Binary\BinaryObjectReader.cs (14)
109
throw new SerializationException(
SR
.Serialization_TopObject);
142
throw new SerializationException(
SR
.Format(CultureInfo.InvariantCulture,
SR
.Serialization_NonSerType, t.FullName, t.Assembly.FullName));
206
throw new SerializationException(
SR
.Format(
SR
.Serialization_XMLElement, pr._name));
213
throw new SerializationException(
SR
.Format(
SR
.Serialization_ParseError, onStack._name + " " + onStack._parseTypeEnum + " " + processing._name + " " + processing._parseTypeEnum));
292
throw new SerializationException(
SR
.Format(
SR
.Serialization_TopObjectInstantiate, pr._dtType));
493
throw new SerializationException(
SR
.Format(
SR
.Serialization_ArrayType, pr._arrayTypeEnum));
646
throw new SerializationException(
SR
.Serialization_ArrayTypeObject);
800
throw new SerializationException(
SR
.Format(
SR
.Serialization_TypeMissing, pr._name));
System\Runtime\Serialization\Formatters\Binary\BinaryObjectWriter.cs (2)
742
throw new SerializationException(
SR
.Format(
SR
.Serialization_ObjNoID, realObj));
System\Runtime\Serialization\Formatters\Binary\BinaryParser.cs (40)
143
throw new SerializationException(
SR
.Format(
SR
.Serialization_BinaryHeader, inByte));
150
throw new SerializationException(
SR
.Serialization_TypeExpected);
210
throw new SerializationException(
SR
.Serialization_StreamEnd);
233
throw new EndOfStreamException(
SR
.IO_EOF_ReadBeyondEOF);
301
throw new SerializationException(
SR
.Format(
SR
.Serialization_CrossAppDomainError, "String", crossAppDomainAssembly._assemblyIndex));
322
throw new SerializationException(
SR
.Format(
SR
.Serialization_Map, _binaryObject._mapId));
362
throw new SerializationException(
SR
.Format(
SR
.Serialization_Map, objectOp._objectTypeEnum.ToString()));
400
throw new SerializationException(
SR
.Format(
SR
.Serialization_CrossAppDomainError, "BinaryObjectMap", mapObject));
434
throw new SerializationException(
SR
.Format(
SR
.Serialization_Assembly, record._name));
441
throw new SerializationException(
SR
.Format(
SR
.Serialization_Assembly, record._assemId + " " + record._name));
491
throw new SerializationException(
SR
.Format(
SR
.Serialization_ObjectTypeEnum, objectOp._objectTypeEnum.ToString()));
538
throw new SerializationException(
SR
.Format(
SR
.Serialization_AssemblyId, record._name));
544
throw new SerializationException(
SR
.Format(
SR
.Serialization_AssemblyId, record._assemId + " " + record._name));
590
throw new SerializationException(
SR
.Format(
SR
.Serialization_ObjectTypeEnum, objectOp._objectTypeEnum.ToString()));
624
throw new SerializationException(
SR
.Format(
SR
.Serialization_CrossAppDomainError, "String", _crossAppDomainString._value));
672
throw new SerializationException(
SR
.Format(
SR
.Serialization_ObjectTypeEnum, objectOp._objectTypeEnum.ToString()));
718
throw new SerializationException(
SR
.Format(
SR
.Serialization_ObjectTypeEnum, objectOp._objectTypeEnum.ToString()));
737
throw new SerializationException(
SR
.Format(
SR
.Serialization_AssemblyId, record._typeInformation));
782
throw new SerializationException(
SR
.Format(
SR
.Serialization_ObjectTypeEnum, objectOp._objectTypeEnum.ToString()));
842
throw new SerializationException(
SR
.Format(
SR
.Serialization_ArrayType, record._binaryArrayTypeEnum.ToString()));
1007
throw new SerializationException(
SR
.Serialization_StreamEnd);
1030
_ => throw new SerializationException(
SR
.Format(
SR
.Serialization_TypeCode, code.ToString())),
System\Runtime\Serialization\Formatters\Binary\BinaryTypeConverter.cs (8)
72
throw new SerializationException(
SR
.Format(
SR
.Serialization_AssemblyId, typeInformation));
158
throw new SerializationException(
SR
.Format(
SR
.Serialization_TypeWrite, binaryTypeEnum.ToString()));
187
throw new SerializationException(
SR
.Format(
SR
.Serialization_TypeRead, binaryTypeEnum.ToString()));
246
throw new SerializationException(
SR
.Format(
SR
.Serialization_TypeRead, binaryTypeEnum.ToString()));
System\Runtime\Serialization\Formatters\Binary\BinaryUtilClasses.cs (2)
277
throw new SerializationException(
SR
.Serialization_CorruptedStream);
354
throw new SerializationException(
SR
.Serialization_CorruptedStream);
System\Runtime\Serialization\Formatters\Binary\ObjectMap.cs (2)
67
throw new SerializationException(
SR
.Format(
SR
.Serialization_Assembly, objectName));
System\Runtime\Serialization\Formatters\Binary\SerializationHeaderRecord.cs (3)
53
throw new EndOfStreamException(
SR
.IO_EOF_ReadBeyondEOF);
59
throw new SerializationException(
SR
.Format(
SR
.Serialization_InvalidFormat, BitConverter.ToString(headerBytes)));
System\Runtime\Serialization\FormatterServices.cs (12)
36
throw new SerializationException(
SR
.Format(
SR
.Serialization_NonSerType, type.FullName, type.Assembly.FullName));
58
throw new SerializationException(
SR
.Format(
SR
.Serialization_NonSerType, parentType.FullName, parentType.Module.Assembly.FullName));
213
throw new ArgumentException(
SR
.Argument_InvalidFieldInfo);
224
throw new ArgumentException(
SR
.Argument_DataLengthDifferent);
232
throw new ArgumentNullException(nameof(members),
SR
.Format(
SR
.ArgumentNull_NullMember, i));
252
throw new SerializationException(
SR
.Serialization_UnknownMemberInfo);
269
throw new ArgumentNullException(nameof(members),
SR
.Format(
SR
.ArgumentNull_NullMember, i));
275
throw new SerializationException(
SR
.Serialization_UnknownMemberInfo);
System\Runtime\Serialization\ObjectIDGenerator.cs (1)
123
throw new SerializationException(
SR
.Serialization_TooManyElements);
System\Runtime\Serialization\ObjectManager.cs (40)
145
throw new SerializationException(
SR
.Format(
SR
.Serialization_NeverSeen, fixup._id));
149
throw new SerializationException(
SR
.Format(
SR
.Serialization_IORIncomplete, fixup._id));
151
throw new SerializationException(
SR
.Format(
SR
.Serialization_ObjectNotSupplied, fixup._id));
187
throw new SerializationException(
SR
.Format(
SR
.Serialization_NotCyclicallyReferenceableSurrogate, surrogate.GetType().FullName));
255
throw new SerializationException(
SR
.Serialization_TooManyReferences);
411
throw new SerializationException(
SR
.Format(
SR
.Serialization_MissingObject, holder._id));
425
throw new SerializationException(
SR
.Serialization_InvalidFixupDiscovered);
484
throw new SerializationException(
SR
.Format(
SR
.Serialization_TypeLoadFailure, holder.TypeLoadException!.TypeName));
502
throw new SerializationException(
SR
.Serialization_ValueTypeFixup);
528
throw new SerializationException(
SR
.Serialization_PartialValueTypeFixup);
542
throw new SerializationException(
SR
.Serialization_UnableToFixup);
546
throw new SerializationException(
SR
.Serialization_UnableToFixup);
619
throw new ArgumentOutOfRangeException(nameof(objectID),
SR
.ArgumentOutOfRange_ObjectID);
668
throw new ArgumentOutOfRangeException(nameof(objectID),
SR
.ArgumentOutOfRange_ObjectID);
672
throw new SerializationException(
SR
.Serialization_UnknownMemberInfo);
722
throw new SerializationException(
SR
.Serialization_RegisterTwice);
779
throw new ArgumentException(
SR
.Serialization_NotISer);
790
throw new SerializationException(
SR
.Format(
SR
.Serialization_ConstructorNotFound, t), e);
810
throw new SerializationException(
SR
.Format(
SR
.Serialization_ConstructorNotFound, t.FullName));
837
throw new SerializationException(
SR
.Format(
SR
.Serialization_ObjectNotSupplied, temp._id));
866
throw new SerializationException(
SR
.Format(
SR
.Serialization_TypeLoadFailure, ((TypeLoadExceptionHolder)TopObject).TypeName));
891
throw new SerializationException(
SR
.Serialization_IncorrectNumberOfFixups);
909
throw new SerializationException(
SR
.Serialization_InvalidFixupType);
929
throw new ArgumentOutOfRangeException(objectToBeFixed <= 0 ? nameof(objectToBeFixed) : nameof(objectRequired),
SR
.Serialization_IdTooSmall);
934
throw new SerializationException(
SR
.Format(
SR
.Serialization_InvalidType, member.GetType()));
947
throw new ArgumentOutOfRangeException(objectToBeFixed <= 0 ? nameof(objectToBeFixed) : nameof(objectRequired),
SR
.Serialization_IdTooSmall);
968
throw new ArgumentOutOfRangeException(arrayToBeFixed <= 0 ? nameof(arrayToBeFixed) : nameof(objectRequired),
SR
.Serialization_IdTooSmall);
1068
throw new SerializationException(
SR
.Serialization_ParentChildIdentical);
1215
throw new SerializationException(
SR
.Serialization_ParentChildIdentical);
System\Runtime\Serialization\SurrogateSelector.cs (5)
61
throw new SerializationException(
SR
.Serialization_SurrogateCycle);
67
throw new ArgumentException(
SR
.Serialization_SurrogateCycleInArgument, nameof(selector));
81
throw new ArgumentException(
SR
.Serialization_SurrogateCycle, nameof(selector));
103
throw new ArgumentException(
SR
.Serialization_SurrogateCycle, nameof(selector));
127
throw new ArgumentException(
SR
.Serialization_SurrogateCycle, nameof(selector));
System\Runtime\Serialization\ValueTypeFixupInfo.cs (3)
37
throw new ArgumentException(
SR
.Argument_MustSupplyParent);
53
throw new ArgumentException(
SR
.Argument_MemberAndArray);
58
throw new ArgumentException(
SR
.Argument_MustSupplyContainer);