Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
ValueAsBoolean
override
bool
System.Xml.XPath.XPathNavigator.ValueAsBoolean
get
inherited
Definition at line
204
of file
XPathNavigator.cs
.
205
{
206
get
207
{
208
IXmlSchemaInfo
schemaInfo =
SchemaInfo
;
209
if
(schemaInfo !=
null
)
210
{
211
if
(schemaInfo.
Validity
==
XmlSchemaValidity
.Valid)
212
{
213
XmlSchemaType
xmlSchemaType
= schemaInfo.
MemberType
;
214
if
(
xmlSchemaType
==
null
)
215
{
216
xmlSchemaType
= schemaInfo.
SchemaType
;
217
}
218
if
(
xmlSchemaType
!=
null
)
219
{
220
return
xmlSchemaType
.ValueConverter.ToBoolean(
Value
);
221
}
222
}
223
else
224
{
225
XmlSchemaType
xmlSchemaType
= schemaInfo.
SchemaType
;
226
if
(
xmlSchemaType
!=
null
)
227
{
228
XmlSchemaDatatype
datatype =
xmlSchemaType
.Datatype;
229
if
(datatype !=
null
)
230
{
231
return
xmlSchemaType
.ValueConverter.ToBoolean(datatype.
ParseValue
(
Value
,
NameTable
,
this
));
232
}
233
}
234
}
235
}
236
return
XmlUntypedConverter
.
Untyped
.ToBoolean(
Value
);
237
}
238
}
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