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

◆ ValueAsInt

override int System.Xml.XPath.XPathNavigator.ValueAsInt
getinherited

Definition at line 312 of file XPathNavigator.cs.

313 {
314 get
315 {
316 IXmlSchemaInfo schemaInfo = SchemaInfo;
317 if (schemaInfo != null)
318 {
319 if (schemaInfo.Validity == XmlSchemaValidity.Valid)
320 {
322 if (xmlSchemaType == null)
323 {
324 xmlSchemaType = schemaInfo.SchemaType;
325 }
326 if (xmlSchemaType != null)
327 {
328 return xmlSchemaType.ValueConverter.ToInt32(Value);
329 }
330 }
331 else
332 {
334 if (xmlSchemaType != null)
335 {
336 XmlSchemaDatatype datatype = xmlSchemaType.Datatype;
337 if (datatype != null)
338 {
339 return xmlSchemaType.ValueConverter.ToInt32(datatype.ParseValue(Value, NameTable, this));
340 }
341 }
342 }
343 }
344 return XmlUntypedConverter.Untyped.ToInt32(Value);
345 }
346 }
object ParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr)
static readonly XmlValueConverter Untyped
virtual ? IXmlSchemaInfo SchemaInfo
XmlSchemaSimpleType? MemberType