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

◆ ReadElementContentAsBoolean() [1/2]

override bool System.Xml.XsdValidatingReader.ReadElementContentAsBoolean ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 798 of file XsdValidatingReader.cs.

799 {
800 if (NodeType != XmlNodeType.Element)
801 {
802 throw CreateReadElementContentAsException("ReadElementContentAsBoolean");
803 }
804 XmlSchemaType xmlType;
806 try
807 {
808 return xmlType?.ValueConverter.ToBoolean(value) ?? XmlUntypedConverter.Untyped.ToBoolean(value);
809 }
810 catch (FormatException innerException)
811 {
813 }
814 catch (InvalidCastException innerException2)
815 {
817 }
818 catch (OverflowException innerException3)
819 {
821 }
822 }
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.ToBoolean(), System.Xml.Schema.XmlUntypedConverter.Untyped, System.value, System.Xml.Schema.XmlSchemaType.ValueConverter, System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.