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

◆ ReadElementContentAsStringAsync()

override async Task< string > System.Xml.XsdValidatingReader.ReadElementContentAsStringAsync ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 2201 of file XsdValidatingReader.cs.

2202 {
2203 if (NodeType != XmlNodeType.Element)
2204 {
2205 throw CreateReadElementContentAsException("ReadElementContentAsString");
2206 }
2208 try
2209 {
2210 if (xmlSchemaType != null)
2211 {
2212 return xmlSchemaType.ValueConverter.ToString(obj);
2213 }
2214 return obj as string;
2215 }
2216 catch (InvalidCastException innerException)
2217 {
2219 }
2220 catch (FormatException innerException2)
2221 {
2223 }
2224 catch (OverflowException innerException3)
2225 {
2227 }
2228 }
static string Xml_ReadContentAsFormatException
Definition SR.cs:190
Definition SR.cs:7
Exception CreateReadElementContentAsException(string methodName)
Task<(XmlSchemaType, object)> InternalReadElementContentAsObjectAsync()

References System.Xml.XmlReader.CreateReadElementContentAsException(), System.Xml.Dictionary, System.Xml.XsdValidatingReader.InternalReadElementContentAsObjectAsync(), System.Xml.XsdValidatingReader.NodeType, System.obj, System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.