Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
ValueAsDateTime
override
DateTime
System.Xml.XPath.XPathNavigator.ValueAsDateTime
get
inherited
Definition at line
240
of file
XPathNavigator.cs
.
241
{
242
get
243
{
244
IXmlSchemaInfo
schemaInfo =
SchemaInfo
;
245
if
(schemaInfo !=
null
)
246
{
247
if
(schemaInfo.
Validity
==
XmlSchemaValidity
.Valid)
248
{
249
XmlSchemaType
xmlSchemaType
= schemaInfo.
MemberType
;
250
if
(
xmlSchemaType
==
null
)
251
{
252
xmlSchemaType
= schemaInfo.
SchemaType
;
253
}
254
if
(
xmlSchemaType
!=
null
)
255
{
256
return
xmlSchemaType
.ValueConverter.ToDateTime(
Value
);
257
}
258
}
259
else
260
{
261
XmlSchemaType
xmlSchemaType
= schemaInfo.
SchemaType
;
262
if
(
xmlSchemaType
!=
null
)
263
{
264
XmlSchemaDatatype
datatype =
xmlSchemaType
.Datatype;
265
if
(datatype !=
null
)
266
{
267
return
xmlSchemaType
.ValueConverter.ToDateTime(datatype.
ParseValue
(
Value
,
NameTable
,
this
));
268
}
269
}
270
}
271
}
272
return
XmlUntypedConverter
.
Untyped
.ToDateTime(
Value
);
273
}
274
}
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