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