Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CheckSupportedMember()

void System.Xml.Serialization.StructModel.CheckSupportedMember ( TypeDesc typeDesc,
MemberInfo member,
Type type )
inlineprivate

Definition at line 54 of file StructModel.cs.

55 {
56 if (typeDesc == null)
57 {
58 return;
59 }
60 if (typeDesc.IsUnsupported)
61 {
62 if (typeDesc.Exception == null)
63 {
64 typeDesc.Exception = new NotSupportedException(System.SR.Format(System.SR.XmlSerializerUnsupportedType, typeDesc.FullName));
65 }
67 }
68 CheckSupportedMember(typeDesc.BaseTypeDesc, member, type);
69 CheckSupportedMember(typeDesc.ArrayElementTypeDesc, member, type);
70 }
static string XmlSerializerUnsupportedType
Definition SR.cs:1394
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlSerializerUnsupportedMember
Definition SR.cs:1396
Definition SR.cs:7
string? FullName
Definition Type.cs:47
void CheckSupportedMember(TypeDesc typeDesc, MemberInfo member, Type type)

References System.Xml.Serialization.StructModel.CheckSupportedMember(), System.Reflection.MemberInfo.DeclaringType, System.Xml.Dictionary, System.SR.Format(), System.Type.FullName, System.Reflection.MemberInfo.Name, System.type, System.SR.XmlSerializerUnsupportedMember, and System.SR.XmlSerializerUnsupportedType.

Referenced by System.Xml.Serialization.StructModel.CheckSupportedMember(), System.Xml.Serialization.StructModel.GetFieldModel(), and System.Xml.Serialization.StructModel.GetPropertyModel().