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

◆ ValueAsDouble

override double System.Xml.XPath.XPathNavigator.ValueAsDouble
getinherited

Definition at line 276 of file XPathNavigator.cs.

277 {
278 get
279 {
280 IXmlSchemaInfo schemaInfo = SchemaInfo;
281 if (schemaInfo != null)
282 {
283 if (schemaInfo.Validity == XmlSchemaValidity.Valid)
284 {
286 if (xmlSchemaType == null)
287 {
288 xmlSchemaType = schemaInfo.SchemaType;
289 }
290 if (xmlSchemaType != null)
291 {
292 return xmlSchemaType.ValueConverter.ToDouble(Value);
293 }
294 }
295 else
296 {
298 if (xmlSchemaType != null)
299 {
300 XmlSchemaDatatype datatype = xmlSchemaType.Datatype;
301 if (datatype != null)
302 {
303 return xmlSchemaType.ValueConverter.ToDouble(datatype.ParseValue(Value, NameTable, this));
304 }
305 }
306 }
307 }
308 return XmlUntypedConverter.Untyped.ToDouble(Value);
309 }
310 }
object ParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr)
static readonly XmlValueConverter Untyped
virtual ? IXmlSchemaInfo SchemaInfo
XmlSchemaSimpleType? MemberType