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

◆ GetDefaultValue() [1/2]

string System.Xml.Schema.XNodeValidator.GetDefaultValue ( XmlSchemaAttribute sa)
inlineprivate

Definition at line 132 of file XNodeValidator.cs.

133 {
134 XmlSchemaAttribute xmlSchemaAttribute = sa;
135 XmlQualifiedName refName = xmlSchemaAttribute.RefName;
136 if (!refName.IsEmpty)
137 {
139 if (xmlSchemaAttribute == null)
140 {
141 return null;
142 }
143 }
144 string fixedValue = xmlSchemaAttribute.FixedValue;
145 if (fixedValue != null)
146 {
147 return fixedValue;
148 }
149 return xmlSchemaAttribute.DefaultValue;
150 }
readonly XmlSchemaSet schemas
XmlSchemaObjectTable GlobalAttributes

References System.Xml.Dictionary, System.Xml.Schema.XmlSchemaSet.GlobalAttributes, and System.Xml.Schema.XNodeValidator.schemas.

Referenced by System.Xml.Schema.XNodeValidator.GetDefaultAttributeSchemaInfo(), System.Xml.Schema.XNodeValidator.ValidateAttributes(), and System.Xml.Schema.XNodeValidator.ValidateElement().