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

◆ AttributeForm()

XmlSchemaForm System.Xml.Serialization.XmlSchemaImporter.AttributeForm ( string ns,
XmlSchemaAttribute attribute )
inlineprivate

Definition at line 2042 of file XmlSchemaImporter.cs.

2043 {
2044 if (attribute.Form == XmlSchemaForm.None)
2045 {
2047 while (xmlSchemaObject.Parent != null)
2048 {
2050 }
2052 {
2053 if (ns == null || ns.Length == 0)
2054 {
2055 if (xmlSchema.AttributeFormDefault != 0)
2056 {
2057 return xmlSchema.AttributeFormDefault;
2058 }
2059 return XmlSchemaForm.Unqualified;
2060 }
2061 XmlSchemas.Preprocess(xmlSchema);
2062 if (attribute.QualifiedName.Namespace != null && attribute.QualifiedName.Namespace.Length != 0)
2063 {
2064 return XmlSchemaForm.Qualified;
2065 }
2066 return XmlSchemaForm.Unqualified;
2067 }
2068 return XmlSchemaForm.Unqualified;
2069 }
2070 return attribute.Form;
2071 }

References System.Xml.Dictionary, and System.Xml.Serialization.XmlSchemas.Preprocess().

Referenced by System.Xml.Serialization.XmlSchemaImporter.ImportAttribute().