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

◆ ReadElementContentAsInt() [1/2]

override int System.Xml.XsdValidatingReader.ReadElementContentAsInt ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 928 of file XsdValidatingReader.cs.

929 {
930 if (NodeType != XmlNodeType.Element)
931 {
932 throw CreateReadElementContentAsException("ReadElementContentAsInt");
933 }
934 XmlSchemaType xmlType;
936 try
937 {
938 return xmlType?.ValueConverter.ToInt32(value) ?? XmlUntypedConverter.Untyped.ToInt32(value);
939 }
940 catch (FormatException innerException)
941 {
943 }
944 catch (InvalidCastException innerException2)
945 {
947 }
948 catch (OverflowException innerException3)
949 {
951 }
952 }
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.ToInt32(), System.Xml.Schema.XmlUntypedConverter.Untyped, System.value, System.Xml.Schema.XmlSchemaType.ValueConverter, System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.