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

◆ ValueAsDateTime

override DateTime System.Xml.XPath.XPathNavigator.ValueAsDateTime
getinherited

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 {
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 {
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 }
object ParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr)
static readonly XmlValueConverter Untyped
virtual ? IXmlSchemaInfo SchemaInfo
XmlSchemaSimpleType? MemberType