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

◆ ReadElementContentAs() [1/2]

override object System.Xml.XsdValidatingReader.ReadElementContentAs ( Type returnType,
IXmlNamespaceResolver namespaceResolver )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 1010 of file XsdValidatingReader.cs.

1011 {
1012 if (NodeType != XmlNodeType.Element)
1013 {
1014 throw CreateReadElementContentAsException("ReadElementContentAs");
1015 }
1016 XmlSchemaType xmlType;
1017 string originalString;
1019 try
1020 {
1021 if (xmlType != null)
1022 {
1023 if (returnType == typeof(DateTimeOffset) && xmlType.Datatype is Datatype_dateTimeBase)
1024 {
1026 }
1027 return xmlType.ValueConverter.ChangeType(value, returnType, namespaceResolver);
1028 }
1030 }
1031 catch (FormatException innerException)
1032 {
1034 }
1035 catch (InvalidCastException innerException2)
1036 {
1038 }
1039 catch (OverflowException innerException3)
1040 {
1042 }
1043 }
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.Schema.XmlValueConverter.ChangeType(), System.Xml.XmlReader.CreateReadElementContentAsException(), System.Xml.Dictionary, System.Xml.XsdValidatingReader.InternalReadElementContentAsObject(), System.Xml.XsdValidatingReader.NodeType, System.Xml.Schema.XmlUntypedConverter.Untyped, System.value, System.Xml.Schema.XmlSchemaType.ValueConverter, System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.