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

◆ FindTypeNode()

XmlSchemaAnnotated System.Data.XSDSchema.FindTypeNode ( XmlSchemaAnnotated node)
inlinepackage

Definition at line 1607 of file XSDSchema.cs.

1608 {
1611 bool flag = false;
1612 if (xmlSchemaAttribute != null)
1613 {
1614 flag = true;
1615 }
1616 string text = (flag ? xmlSchemaAttribute.SchemaTypeName.Name : xmlSchemaElement.SchemaTypeName.Name);
1617 string text2 = (flag ? xmlSchemaAttribute.SchemaTypeName.Namespace : xmlSchemaElement.SchemaTypeName.Namespace);
1618 if (text2 == "http://www.w3.org/2001/XMLSchema")
1619 {
1620 return null;
1621 }
1622 if (text == null || text.Length == 0)
1623 {
1624 text = (flag ? xmlSchemaAttribute.RefName.Name : xmlSchemaElement.RefName.Name);
1625 if (text == null || text.Length == 0)
1626 {
1627 return flag ? xmlSchemaAttribute.SchemaType : xmlSchemaElement.SchemaType;
1628 }
1630 }
1631 return (XmlSchemaAnnotated)_schemaTypes[flag ? ((XmlSchemaAttribute)node).SchemaTypeName : ((XmlSchemaElement)node).SchemaTypeName];
1632 }
Hashtable _schemaTypes
Definition XSDSchema.cs:59
Hashtable _elementsTable
Definition XSDSchema.cs:55
XmlSchemaAnnotated FindTypeNode(XmlSchemaAnnotated node)
Hashtable _attributes
Definition XSDSchema.cs:53

References System.Data.XSDSchema._attributes, System.Data.XSDSchema._elementsTable, System.Data.XSDSchema._schemaTypes, System.Xml.Dictionary, System.Data.XSDSchema.FindTypeNode(), and System.text.

Referenced by System.Data.XSDSchema.FindTypeNode(), System.Data.XSDSchema.HandleAttributeColumn(), System.Data.XSDSchema.HandleElementColumn(), and System.Data.XSDSchema.LoadSchema().