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

◆ ReadElementContentAsDateTime() [1/2]

override DateTime System.Xml.XsdValidatingReader.ReadElementContentAsDateTime ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 824 of file XsdValidatingReader.cs.

825 {
826 if (NodeType != XmlNodeType.Element)
827 {
828 throw CreateReadElementContentAsException("ReadElementContentAsDateTime");
829 }
830 XmlSchemaType xmlType;
832 try
833 {
834 return xmlType?.ValueConverter.ToDateTime(value) ?? XmlUntypedConverter.Untyped.ToDateTime(value);
835 }
836 catch (FormatException innerException)
837 {
839 }
840 catch (InvalidCastException innerException2)
841 {
843 }
844 catch (OverflowException innerException3)
845 {
847 }
848 }
static string Xml_ReadContentAsFormatException
Definition SR.cs:190
Definition SR.cs:7
static readonly XmlValueConverter Untyped
DateTime ToDateTime(bool value)
Exception CreateReadElementContentAsException(string methodName)
object InternalReadElementContentAsObject(out XmlSchemaType xmlType)

References System.Xml.XmlReader.CreateReadElementContentAsException(), System.Xml.XsdValidatingReader.InternalReadElementContentAsObject(), System.Xml.XsdValidatingReader.NodeType, System.Xml.Schema.XmlValueConverter.ToDateTime(), System.Xml.Schema.XmlUntypedConverter.Untyped, System.value, System.Xml.Schema.XmlSchemaType.ValueConverter, System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.