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

◆ InternalReadContentAsObjectTupleAsync()

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

Definition at line 2616 of file XsdValidatingReader.cs.

2617 {
2618 switch (NodeType)
2619 {
2620 case XmlNodeType.Attribute:
2621 {
2623 if (_attributePSVI != null && _attributePSVI.typedAttributeValue != null)
2624 {
2625 if (_validationState == ValidatingReaderState.OnDefaultAttribute)
2626 {
2629 }
2631 }
2633 }
2634 case XmlNodeType.EndElement:
2635 {
2637 if (_atomicValue != null)
2638 {
2641 }
2642 originalAtomicValueString = string.Empty;
2643 return (originalAtomicValueString, string.Empty);
2644 }
2645 default:
2646 {
2649 {
2653 }
2654 originalAtomicValueString = ((!(_coreReader is XsdCachingReader xsdCachingReader)) ? (await InternalReadContentAsStringAsync().ConfigureAwait(continueOnCapturedContext: false)) : xsdCachingReader.ReadOriginalContentAsString());
2656 }
2657 }
2658 }
XmlSchemaAttribute? SchemaAttribute
async Task< string > InternalReadContentAsStringAsync()
object ReturnBoxedValue(object typedValue, XmlSchemaType xmlType, bool unWrap)
async Task< object > ReadTillEndElementAsync()
ValidatingReaderState _validationState

References System.Xml.XsdValidatingReader._atomicValue, System.Xml.XsdValidatingReader._attributePSVI, System.Xml.XsdValidatingReader._coreReader, System.Xml.XsdValidatingReader._originalAtomicValueString, System.Xml.XsdValidatingReader._validationState, System.Xml.XsdValidatingReader._validator, System.Xml.XsdValidatingReader._xmlSchemaInfo, System.Xml.AttributePSVIInfo.attributeSchemaInfo, System.Xml.XsdValidatingReader.AttributeSchemaInfo, System.Xml.Schema.XmlSchemaValidator.CurrentContentType, System.Xml.Dictionary, System.Xml.XmlReader.InternalReadContentAsStringAsync(), System.item, System.Xml.XsdValidatingReader.NodeType, System.Xml.XsdValidatingReader.ReadTillEndElementAsync(), System.Xml.XsdValidatingReader.ReturnBoxedValue(), System.Xml.Schema.XmlSchemaInfo.SchemaAttribute, System.Xml.AttributePSVIInfo.typedAttributeValue, System.Xml.XsdValidatingReader.Value, and System.Xml.Schema.XmlSchemaInfo.XmlType.

Referenced by System.Xml.XsdValidatingReader.InternalReadContentAsObjectAsync(), System.Xml.XsdValidatingReader.InternalReadElementContentAsObjectTupleAsync(), and System.Xml.XsdValidatingReader.ReadContentAsAsync().