Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
ValueAsInt
override
int System.Xml.XPath.XPathNavigator.ValueAsInt
get
inherited
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
{
321
XmlSchemaType
xmlSchemaType
= schemaInfo.
MemberType
;
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
{
333
XmlSchemaType
xmlSchemaType
= schemaInfo.
SchemaType
;
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
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Xml.Schema.XmlSchemaDatatype.ParseValue
object ParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr)
System.Xml.Schema.XmlSchemaDatatype
Definition
XmlSchemaDatatype.cs:8
System.Xml.Schema.XmlSchemaType
Definition
XmlSchemaType.cs:8
System.Xml.Schema.XmlUntypedConverter.Untyped
static readonly XmlValueConverter Untyped
Definition
XmlUntypedConverter.cs:7
System.Xml.Schema.XmlUntypedConverter
Definition
XmlUntypedConverter.cs:4
System.Xml.XPath.XPathItem.Value
string Value
Definition
XPathItem.cs:11
System.Xml.XPath.XPathNavigator.NameTable
XmlNameTable NameTable
Definition
XPathNavigator.cs:384
System.Xml.XPath.XPathNavigator.SchemaInfo
virtual ? IXmlSchemaInfo SchemaInfo
Definition
XPathNavigator.cs:447
System.Xml.Schema.IXmlSchemaInfo.SchemaType
XmlSchemaType? SchemaType
Definition
IXmlSchemaInfo.cs:13
System.Xml.Schema.IXmlSchemaInfo.MemberType
XmlSchemaSimpleType? MemberType
Definition
IXmlSchemaInfo.cs:11
System.Xml.Schema.IXmlSchemaInfo.Validity
XmlSchemaValidity Validity
Definition
IXmlSchemaInfo.cs:5
System.Xml.Schema.IXmlSchemaInfo
Definition
IXmlSchemaInfo.cs:4
System.Xml.Schema.XmlSchemaValidity
XmlSchemaValidity
Definition
XmlSchemaValidity.cs:4
System
Xml
Xsl
Runtime
RtfTreeNavigator
Generated by
1.10.0