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

◆ ValueAsLong

override long System.Xml.XPath.XPathNavigator.ValueAsLong
getinherited

Definition at line 348 of file XPathNavigator.cs.

349 {
350 get
351 {
352 IXmlSchemaInfo schemaInfo = SchemaInfo;
353 if (schemaInfo != null)
354 {
355 if (schemaInfo.Validity == XmlSchemaValidity.Valid)
356 {
358 if (xmlSchemaType == null)
359 {
360 xmlSchemaType = schemaInfo.SchemaType;
361 }
362 if (xmlSchemaType != null)
363 {
364 return xmlSchemaType.ValueConverter.ToInt64(Value);
365 }
366 }
367 else
368 {
370 if (xmlSchemaType != null)
371 {
372 XmlSchemaDatatype datatype = xmlSchemaType.Datatype;
373 if (datatype != null)
374 {
375 return xmlSchemaType.ValueConverter.ToInt64(datatype.ParseValue(Value, NameTable, this));
376 }
377 }
378 }
379 }
380 return XmlUntypedConverter.Untyped.ToInt64(Value);
381 }
382 }
object ParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr)
static readonly XmlValueConverter Untyped
virtual ? IXmlSchemaInfo SchemaInfo
XmlSchemaSimpleType? MemberType