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