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

◆ InternalReadElementContentAsObjectTupleAsync()

async Task<(XmlSchemaType, string, object)> System.Xml.XsdValidatingReader.InternalReadElementContentAsObjectTupleAsync ( bool unwrapTypedValue)
inlineprivate

Definition at line 2671 of file XsdValidatingReader.cs.

2672 {
2673 object typedValue;
2674 string originalString;
2675 XmlSchemaType xmlType;
2676 if (IsEmptyElement)
2677 {
2680 xmlType = ElementXmlType;
2682 return (xmlType, originalString, typedValue);
2683 }
2685 if (NodeType == XmlNodeType.EndElement)
2686 {
2688 {
2691 }
2692 else
2693 {
2694 typedValue = string.Empty;
2695 originalString = string.Empty;
2696 }
2697 }
2698 else
2699 {
2700 if (NodeType == XmlNodeType.Element)
2701 {
2702 throw new XmlException(System.SR.Xml_MixedReadElementContentAs, string.Empty, this);
2703 }
2705 if (NodeType != XmlNodeType.EndElement)
2706 {
2707 throw new XmlException(System.SR.Xml_MixedReadElementContentAs, string.Empty, this);
2708 }
2709 }
2710 xmlType = ElementXmlType;
2712 return (xmlType, originalString, typedValue);
2713 }
static string Xml_MixedReadElementContentAs
Definition SR.cs:180
Definition SR.cs:7
async Task<(string, object)> InternalReadContentAsObjectTupleAsync(bool unwrapTypedValue)
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.InternalReadContentAsObjectTupleAsync(), System.Xml.Schema.XmlSchemaInfo.IsDefault, System.Xml.XsdValidatingReader.IsEmptyElement, System.Xml.XsdValidatingReader.NodeType, System.Xml.XsdValidatingReader.ReadAsync(), System.Xml.XsdValidatingReader.ReturnBoxedValue(), System.SR.Xml_MixedReadElementContentAs, System.Xml.XmlException, and System.Xml.Schema.XmlSchemaInfo.XmlType.

Referenced by System.Xml.XsdValidatingReader.InternalReadElementContentAsObjectAsync(), and System.Xml.XsdValidatingReader.ReadElementContentAsAsync().