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

◆ InternalReadContentAsObject() [3/3]

object System.Xml.XsdValidatingReader.InternalReadContentAsObject ( bool unwrapTypedValue,
out string originalStringValue )
inlineprivate

Definition at line 1803 of file XsdValidatingReader.cs.

1804 {
1805 switch (NodeType)
1806 {
1807 case XmlNodeType.Attribute:
1809 if (_attributePSVI != null && _attributePSVI.typedAttributeValue != null)
1810 {
1811 if (_validationState == ValidatingReaderState.OnDefaultAttribute)
1812 {
1814 originalStringValue = ((schemaAttribute.DefaultValue != null) ? schemaAttribute.DefaultValue : schemaAttribute.FixedValue);
1815 }
1817 }
1818 return Value;
1819 case XmlNodeType.EndElement:
1820 if (_atomicValue != null)
1821 {
1823 return _atomicValue;
1824 }
1825 originalStringValue = string.Empty;
1826 return string.Empty;
1827 default:
1829 {
1832 return result;
1833 }
1834 if (_coreReader is XsdCachingReader xsdCachingReader)
1835 {
1836 originalStringValue = xsdCachingReader.ReadOriginalContentAsString();
1837 }
1838 else
1839 {
1841 }
1842 return originalStringValue;
1843 }
1844 }
XmlSchemaAttribute? SchemaAttribute
string InternalReadContentAsString()
object ReturnBoxedValue(object typedValue, XmlSchemaType xmlType, bool unWrap)
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.InternalReadContentAsString(), System.Xml.XsdValidatingReader.NodeType, System.Xml.XsdValidatingReader.ReadTillEndElement(), System.Xml.XsdValidatingReader.ReturnBoxedValue(), System.Xml.Schema.XmlSchemaInfo.SchemaAttribute, System.Xml.AttributePSVIInfo.typedAttributeValue, System.Xml.XsdValidatingReader.Value, and System.Xml.Schema.XmlSchemaInfo.XmlType.