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

◆ ReadContentAsObject()

override object System.Xml.XmlSqlBinaryReader.ReadContentAsObject ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 1591 of file XmlSqlBinaryReader.cs.

1592 {
1593 int num = _pos;
1594 try
1595 {
1596 if (SetupContentAsXXX("ReadContentAsObject"))
1597 {
1598 object result;
1599 try
1600 {
1601 result = ((NodeType != XmlNodeType.Element && NodeType != XmlNodeType.EndElement) ? ValueAsObject(_token, returnInternalTypes: false) : string.Empty);
1602 }
1603 catch (InvalidCastException innerException)
1604 {
1606 }
1607 catch (FormatException innerException2)
1608 {
1610 }
1611 catch (OverflowException innerException3)
1612 {
1614 }
1615 num = FinishContentAsXXX(num);
1616 return result;
1617 }
1618 }
1619 finally
1620 {
1621 _pos = num;
1622 }
1623 return base.ReadContentAsObject();
1624 }
static string Xml_ReadContentAsFormatException
Definition SR.cs:190
Definition SR.cs:7
object ValueAsObject(BinXmlToken token, bool returnInternalTypes)

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.ValueAsObject(), System.SR.Xml_ReadContentAsFormatException, and System.Xml.XmlException.