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

◆ GetAttributes() [2/2]

XmlAttributes System.Xml.Serialization.XmlReflectionImporter.GetAttributes ( Type type,
bool canBeSimpleType )
inlineprivate

Definition at line 206 of file XmlReflectionImporter.cs.

207 {
208 XmlAttributes xmlAttributes = _attributeOverrides[type];
209 if (xmlAttributes != null)
210 {
211 return xmlAttributes;
212 }
213 if (canBeSimpleType && TypeScope.IsKnownType(type))
214 {
215 return _defaultAttributes;
216 }
217 return new XmlAttributes(type);
218 }

References System.Xml.Serialization.XmlReflectionImporter._attributeOverrides, System.Xml.Serialization.XmlReflectionImporter._defaultAttributes, System.Xml.Dictionary, System.Xml.Serialization.TypeScope.IsKnownType(), and System.type.

Referenced by System.Xml.Serialization.XmlReflectionImporter.ImportConstantMapping(), System.Xml.Serialization.XmlReflectionImporter.ImportElement(), System.Xml.Serialization.XmlReflectionImporter.ImportEnumMapping(), System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(), System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(), System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(), System.Xml.Serialization.XmlReflectionImporter.SetArrayMappingType(), and System.Xml.Serialization.XmlReflectionImporter.XsdTypeName().