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

◆ SetTypedValue()

virtual void System.Xml.XPath.XPathNavigator.SetTypedValue ( object typedValue)
inlinevirtualinherited

Definition at line 639 of file XPathNavigator.cs.

640 {
641 if (typedValue == null)
642 {
643 throw new ArgumentNullException("typedValue");
644 }
645 XPathNodeType nodeType = NodeType;
646 if ((uint)(nodeType - 1) > 1u)
647 {
649 }
650 string text = null;
651 IXmlSchemaInfo schemaInfo = SchemaInfo;
652 if (schemaInfo != null)
653 {
654 XmlSchemaType schemaType = schemaInfo.SchemaType;
655 if (schemaType != null)
656 {
657 text = schemaType.ValueConverter.ToString(typedValue, this);
658 schemaType.Datatype?.ParseValue(text, NameTable, this);
659 }
660 }
661 if (text == null)
662 {
663 text = XmlUntypedConverter.Untyped.ToString(typedValue, this);
664 }
665 SetValue(text);
666 }
static string Xpn_BadPosition
Definition SR.cs:1316
Definition SR.cs:7
object ParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr)
static readonly XmlValueConverter Untyped
virtual ? IXmlSchemaInfo SchemaInfo
virtual void SetValue(string value)

References System.Xml.Schema.XmlSchemaType.Datatype, System.Xml.XPath.XPathNavigator.NodeType, System.Xml.Schema.XmlSchemaDatatype.ParseValue(), System.Xml.XPath.XPathNavigator.SchemaInfo, System.Xml.Schema.IXmlSchemaInfo.SchemaType, System.Xml.XPath.XPathNavigator.SetValue(), System.text, System.Xml.Schema.XmlValueConverter.ToString(), System.Xml.Schema.XmlUntypedConverter.Untyped, System.Xml.Schema.XmlSchemaType.ValueConverter, and System.SR.Xpn_BadPosition.