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

◆ GetDefaultValue() [2/2]

string System.Xml.Schema.XNodeValidator.GetDefaultValue ( XmlSchemaElement se)
inlineprivate

Definition at line 152 of file XNodeValidator.cs.

153 {
154 XmlSchemaElement xmlSchemaElement = se;
155 XmlQualifiedName refName = xmlSchemaElement.RefName;
156 if (!refName.IsEmpty)
157 {
159 if (xmlSchemaElement == null)
160 {
161 return null;
162 }
163 }
164 string fixedValue = xmlSchemaElement.FixedValue;
165 if (fixedValue != null)
166 {
167 return fixedValue;
168 }
169 return xmlSchemaElement.DefaultValue;
170 }
readonly XmlSchemaSet schemas
XmlSchemaObjectTable GlobalElements

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