65 references to SR
System.Runtime.Serialization.Formatters (65)
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\BinaryFormatter.Removed.cs (2)
14=> throw new PlatformNotSupportedException(SR.BinaryFormatter_Removed); 18=> throw new PlatformNotSupportedException(SR.BinaryFormatter_Removed);
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);