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

◆ IsAnonymousType()

static bool System.Xml.Serialization.XmlReflectionImporter.IsAnonymousType ( XmlAttributes a,
string contextNs )
inlinestaticprivate

Definition at line 921 of file XmlReflectionImporter.cs.

922 {
923 if (a.XmlType != null && a.XmlType.AnonymousType)
924 {
925 string @namespace = a.XmlType.Namespace;
926 if (!string.IsNullOrEmpty(@namespace))
927 {
928 return @namespace == contextNs;
929 }
930 return true;
931 }
932 return false;
933 }

References System.Xml.Dictionary.

Referenced by System.Xml.Serialization.XmlReflectionImporter.ImportEnumMapping(), System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(), and System.Xml.Serialization.XmlReflectionImporter.SetArrayMappingType().