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

◆ InternalReadElementContentAsObject() [3/3]

object System.Xml.XsdValidatingReader.InternalReadElementContentAsObject ( out XmlSchemaType xmlType,
bool unwrapTypedValue,
out string originalString )
inlineprivate

Definition at line 1857 of file XsdValidatingReader.cs.

1858 {
1859 object obj = null;
1860 xmlType = null;
1861 if (IsEmptyElement)
1862 {
1865 xmlType = ElementXmlType;
1866 Read();
1867 return obj;
1868 }
1869 Read();
1870 if (NodeType == XmlNodeType.EndElement)
1871 {
1873 {
1876 }
1877 else
1878 {
1879 obj = string.Empty;
1880 originalString = string.Empty;
1881 }
1882 }
1883 else
1884 {
1885 if (NodeType == XmlNodeType.Element)
1886 {
1887 throw new XmlException(System.SR.Xml_MixedReadElementContentAs, string.Empty, this);
1888 }
1890 if (NodeType != XmlNodeType.EndElement)
1891 {
1892 throw new XmlException(System.SR.Xml_MixedReadElementContentAs, string.Empty, this);
1893 }
1894 }
1895 xmlType = ElementXmlType;
1896 Read();
1897 return obj;
1898 }
static string Xml_MixedReadElementContentAs
Definition SR.cs:180
Definition SR.cs:7
object ReturnBoxedValue(object typedValue, XmlSchemaType xmlType, bool unWrap)

References System.Xml.XsdValidatingReader._atomicValue, System.Xml.XsdValidatingReader._originalAtomicValueString, System.Xml.XsdValidatingReader._xmlSchemaInfo, System.Xml.Dictionary, System.Xml.XsdValidatingReader.ElementXmlType, System.Xml.XsdValidatingReader.InternalReadContentAsObject(), System.Xml.Schema.XmlSchemaInfo.IsDefault, System.Xml.XsdValidatingReader.IsEmptyElement, System.Xml.XsdValidatingReader.NodeType, System.obj, System.Xml.XsdValidatingReader.Read(), System.Xml.XsdValidatingReader.ReturnBoxedValue(), System.SR.Xml_MixedReadElementContentAs, System.Xml.XmlException, and System.Xml.Schema.XmlSchemaInfo.XmlType.