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

◆ ReadElementContentAsString() [1/2]

override string System.Xml.XsdValidatingReader.ReadElementContentAsString ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 980 of file XsdValidatingReader.cs.

981 {
982 if (NodeType != XmlNodeType.Element)
983 {
984 throw CreateReadElementContentAsException("ReadElementContentAsString");
985 }
986 XmlSchemaType xmlType;
988 try
989 {
990 if (xmlType != null && obj != null)
991 {
992 return xmlType.ValueConverter.ToString(obj);
993 }
994 return (obj as string) ?? string.Empty;
995 }
996 catch (InvalidCastException innerException)
997 {
999 }
1000 catch (FormatException innerException2)
1001 {
1003 }
1004 catch (OverflowException innerException3)
1005 {
1007 }
1008 }
static string Xml_ReadContentAsFormatException
Definition SR.cs:190
Definition SR.cs:7
Exception CreateReadElementContentAsException(string methodName)
object InternalReadElementContentAsObject(out XmlSchemaType xmlType)

References System.Xml.XmlReader.CreateReadElementContentAsException(), System.Xml.XsdValidatingReader.InternalReadElementContentAsObject(), System.Xml.XsdValidatingReader.NodeType, System.obj, System.Xml.Schema.XmlValueConverter.ToString(), System.Xml.Schema.XmlSchemaType.ValueConverter, System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.