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

◆ ReadElementContentAsLong() [1/2]

override long System.Xml.XsdValidatingReader.ReadElementContentAsLong ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 954 of file XsdValidatingReader.cs.

955 {
956 if (NodeType != XmlNodeType.Element)
957 {
958 throw CreateReadElementContentAsException("ReadElementContentAsLong");
959 }
960 XmlSchemaType xmlType;
962 try
963 {
964 return xmlType?.ValueConverter.ToInt64(value) ?? XmlUntypedConverter.Untyped.ToInt64(value);
965 }
966 catch (FormatException innerException)
967 {
969 }
970 catch (InvalidCastException innerException2)
971 {
973 }
974 catch (OverflowException innerException3)
975 {
977 }
978 }
static string Xml_ReadContentAsFormatException
Definition SR.cs:190
Definition SR.cs:7
static readonly XmlValueConverter Untyped
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.ToInt64(), System.Xml.Schema.XmlUntypedConverter.Untyped, System.value, System.Xml.Schema.XmlSchemaType.ValueConverter, System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.