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

◆ ReadContentAsLong()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 697 of file XsdValidatingReader.cs.

698 {
699 if (!XmlReader.CanReadContentAs(NodeType))
700 {
701 throw CreateReadContentAsException("ReadContentAsLong");
702 }
704 XmlSchemaType xmlSchemaType = ((NodeType == XmlNodeType.Attribute) ? AttributeXmlType : ElementXmlType);
705 try
706 {
707 return xmlSchemaType?.ValueConverter.ToInt64(value) ?? XmlUntypedConverter.Untyped.ToInt64(value);
708 }
709 catch (InvalidCastException innerException)
710 {
712 }
713 catch (FormatException innerException2)
714 {
716 }
717 catch (OverflowException innerException3)
718 {
720 }
721 }
static string Xml_ReadContentAsFormatException
Definition SR.cs:190
Definition SR.cs:7
static readonly XmlValueConverter Untyped
Exception CreateReadContentAsException(string methodName)

References System.Xml.XsdValidatingReader.AttributeXmlType, System.Xml.XmlReader.CanReadContentAs(), System.Xml.XmlReader.CreateReadContentAsException(), System.Xml.XsdValidatingReader.ElementXmlType, System.Xml.XsdValidatingReader.InternalReadContentAsObject(), System.Xml.XsdValidatingReader.NodeType, System.Xml.Schema.XmlUntypedConverter.Untyped, System.value, System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.