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

◆ ReadContentAs() [1/2]

override object System.Xml.XmlSqlBinaryReader.ReadContentAs ( Type returnType,
IXmlNamespaceResolver namespaceResolver )
inline

Definition at line 1626 of file XmlSqlBinaryReader.cs.

1627 {
1628 int num = _pos;
1629 try
1630 {
1631 if (SetupContentAsXXX("ReadContentAs"))
1632 {
1633 object result;
1634 try
1635 {
1637 }
1638 catch (InvalidCastException innerException)
1639 {
1641 }
1642 catch (FormatException innerException2)
1643 {
1645 }
1646 catch (OverflowException innerException3)
1647 {
1649 }
1650 num = FinishContentAsXXX(num);
1651 return result;
1652 }
1653 }
1654 finally
1655 {
1656 _pos = num;
1657 }
1658 return base.ReadContentAs(returnType, namespaceResolver);
1659 }
static string Xml_ReadContentAsFormatException
Definition SR.cs:190
Definition SR.cs:7
object ValueAsObject(BinXmlToken token, bool returnInternalTypes)
object ValueAs(BinXmlToken token, Type returnType, IXmlNamespaceResolver namespaceResolver)

References System.Xml.XmlSqlBinaryReader._pos, System.Xml.XmlSqlBinaryReader._token, System.Xml.Dictionary, System.Xml.XmlSqlBinaryReader.FinishContentAsXXX(), System.Xml.XmlSqlBinaryReader.NodeType, System.Xml.XmlSqlBinaryReader.SetupContentAsXXX(), System.Xml.XmlSqlBinaryReader.ValueAs(), System.Xml.XmlSqlBinaryReader.ValueAsObject(), System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.