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

◆ ReadContentAsString()

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

Reimplemented from System.Xml.XmlReader.

Definition at line 723 of file XsdValidatingReader.cs.

724 {
725 if (!XmlReader.CanReadContentAs(NodeType))
726 {
727 throw CreateReadContentAsException("ReadContentAsString");
728 }
730 XmlSchemaType xmlSchemaType = ((NodeType == XmlNodeType.Attribute) ? AttributeXmlType : ElementXmlType);
731 try
732 {
733 if (xmlSchemaType != null)
734 {
735 return xmlSchemaType.ValueConverter.ToString(obj);
736 }
737 return obj as string;
738 }
739 catch (InvalidCastException innerException)
740 {
742 }
743 catch (FormatException innerException2)
744 {
746 }
747 catch (OverflowException innerException3)
748 {
750 }
751 }
static string Xml_ReadContentAsFormatException
Definition SR.cs:190
Definition SR.cs:7
Exception CreateReadContentAsException(string methodName)

References System.Xml.XsdValidatingReader.AttributeXmlType, System.Xml.XmlReader.CanReadContentAs(), System.Xml.XmlReader.CreateReadContentAsException(), System.Xml.XsdValidatingReader.ElementXmlType, System.Xml.XsdValidatingReader.InternalReadContentAsObject(), System.Xml.XsdValidatingReader.NodeType, System.obj, System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.