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

◆ TypedValue

override object System.Xml.XPath.XPathNavigator.TypedValue
getinherited

Definition at line 124 of file XPathNavigator.cs.

125 {
126 get
127 {
128 IXmlSchemaInfo schemaInfo = SchemaInfo;
129 if (schemaInfo != null)
130 {
131 if (schemaInfo.Validity == XmlSchemaValidity.Valid)
132 {
134 if (xmlSchemaType == null)
135 {
136 xmlSchemaType = schemaInfo.SchemaType;
137 }
138 if (xmlSchemaType != null)
139 {
140 XmlSchemaDatatype datatype = xmlSchemaType.Datatype;
141 if (datatype != null)
142 {
143 return xmlSchemaType.ValueConverter.ChangeType(Value, datatype.ValueType, this);
144 }
145 }
146 }
147 else
148 {
150 if (xmlSchemaType != null)
151 {
152 XmlSchemaDatatype datatype = xmlSchemaType.Datatype;
153 if (datatype != null)
154 {
155 return xmlSchemaType.ValueConverter.ChangeType(datatype.ParseValue(Value, NameTable, this), datatype.ValueType, this);
156 }
157 }
158 }
159 }
160 return Value;
161 }
162 }
object ParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr)
virtual ? IXmlSchemaInfo SchemaInfo
XmlSchemaSimpleType? MemberType