Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ GetSurrogatedType()

override Type System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.GetSurrogatedType ( Type type)
inlinepackagevirtualinherited

Reimplemented from System.Runtime.Serialization.XmlObjectSerializerContext.

Definition at line 190 of file XmlObjectSerializerReadContextComplex.cs.

191 {
193 {
194 return base.GetSurrogatedType(type);
195 }
196 type = DataContract.UnwrapNullableType(type);
197 Type surrogatedType = DataContractSerializer.GetSurrogatedType(_serializationSurrogateProvider, type);
199 {
200 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(System.SR.Format(System.SR.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser, DataContract.GetClrTypeFullName(type))));
201 }
202 return surrogatedType;
203 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser
Definition SR.cs:632
Definition SR.cs:7

References System.Runtime.Serialization.XmlObjectSerializerReadContextComplex._serializationSurrogateProvider, System.Runtime.Serialization.Dictionary, System.SR.Format(), System.Runtime.Serialization.DataContract.GetClrTypeFullName(), System.Runtime.Serialization.DataContractSerializer.GetSurrogatedType(), System.Runtime.Serialization.XmlObjectSerializerReadContext.IsGetOnlyCollection, System.SR.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.type, and System.Runtime.Serialization.DataContract.UnwrapNullableType().