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

◆ GetDefaultAttributeSchemaInfo()

XmlSchemaInfo System.Xml.Schema.XNodeValidator.GetDefaultAttributeSchemaInfo ( XmlSchemaAttribute sa)
inlineprivate

Definition at line 100 of file XNodeValidator.cs.

101 {
102 XmlSchemaInfo xmlSchemaInfo = new XmlSchemaInfo();
104 xmlSchemaInfo.IsNil = false;
106 XmlSchemaSimpleType xmlSchemaSimpleType = (XmlSchemaSimpleType)(xmlSchemaInfo.SchemaType = sa.AttributeSchemaType);
107 if (xmlSchemaSimpleType.Datatype.Variety == XmlSchemaDatatypeVariety.Union)
108 {
110 XmlSchemaSimpleType[] baseMemberTypes = ((XmlSchemaSimpleTypeUnion)xmlSchemaSimpleType.Content).BaseMemberTypes;
111 foreach (XmlSchemaSimpleType xmlSchemaSimpleType2 in baseMemberTypes)
112 {
113 object obj = null;
114 try
115 {
117 }
118 catch (XmlSchemaException)
119 {
120 }
121 if (obj != null)
122 {
124 break;
125 }
126 }
127 }
128 xmlSchemaInfo.Validity = XmlSchemaValidity.Valid;
129 return xmlSchemaInfo;
130 }
XmlNamespaceManager namespaceManager
readonly XmlSchemaSet schemas
string GetDefaultValue(XmlSchemaAttribute sa)

References System.Xml.Dictionary, System.Xml.Schema.XNodeValidator.GetDefaultValue(), System.Xml.Schema.XNodeValidator.namespaceManager, System.Xml.Schema.XmlSchemaSet.NameTable, System.obj, and System.Xml.Schema.XNodeValidator.schemas.

Referenced by System.Xml.Schema.XNodeValidator.ValidateAttributes().