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

◆ SetupReadElementContentAsXxx()

bool System.Xml.XmlReader.SetupReadElementContentAsXxx ( string methodName)
inlineprivateinherited

Definition at line 1275 of file XmlReader.cs.

1276 {
1277 if (NodeType != XmlNodeType.Element)
1278 {
1280 }
1282 Read();
1283 if (isEmptyElement)
1284 {
1285 return false;
1286 }
1287 switch (NodeType)
1288 {
1289 case XmlNodeType.EndElement:
1290 Read();
1291 return false;
1292 case XmlNodeType.Element:
1293 throw new XmlException(System.SR.Xml_MixedReadElementContentAs, string.Empty, this as IXmlLineInfo);
1294 default:
1295 return true;
1296 }
1297 }
static string Xml_MixedReadElementContentAs
Definition SR.cs:180
Definition SR.cs:7
Exception CreateReadElementContentAsException(string methodName)
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Xml.XmlReader.CreateReadElementContentAsException(), System.Xml.Dictionary, System.Xml.XmlReader.IsEmptyElement, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.Read(), System.SR.Xml_MixedReadElementContentAs, and System.Xml.XmlException.

Referenced by System.Xml.XmlReader.ReadElementContentAs(), System.Xml.XmlReader.ReadElementContentAsBoolean(), System.Xml.XmlReader.ReadElementContentAsDateTime(), System.Xml.XmlReader.ReadElementContentAsDecimal(), System.Xml.XmlReader.ReadElementContentAsDouble(), System.Xml.XmlReader.ReadElementContentAsFloat(), System.Xml.XmlReader.ReadElementContentAsInt(), System.Xml.XmlReader.ReadElementContentAsLong(), System.Xml.XmlReader.ReadElementContentAsObject(), and System.Xml.XmlReader.ReadElementContentAsString().