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

◆ ReadContentAs() [1/2]

override object System.Xml.XmlBaseReader.ReadContentAs ( Type type,
IXmlNamespaceResolver namespaceResolver )
inlineinherited

Definition at line 2783 of file XmlBaseReader.cs.

2784 {
2785 if (type == typeof(ulong))
2786 {
2787 if (_value == null && _node.IsAtomicValue)
2788 {
2789 ulong num = _node.Value.ToULong();
2791 return num;
2792 }
2793 return XmlConverter.ToUInt64(ReadContentAsString());
2794 }
2795 if (type == typeof(bool))
2796 {
2797 return ReadContentAsBoolean();
2798 }
2799 if (type == typeof(int))
2800 {
2801 return ReadContentAsInt();
2802 }
2803 if (type == typeof(long))
2804 {
2805 return ReadContentAsLong();
2806 }
2807 if (type == typeof(float))
2808 {
2809 return ReadContentAsFloat();
2810 }
2811 if (type == typeof(double))
2812 {
2813 return ReadContentAsDouble();
2814 }
2815 if (type == typeof(decimal))
2816 {
2817 return ReadContentAsDecimal();
2818 }
2819 if (type == typeof(DateTime))
2820 {
2821 return ReadContentAsDateTime();
2822 }
2823 if (type == typeof(UniqueId))
2824 {
2825 return ReadContentAsUniqueId();
2826 }
2827 if (type == typeof(Guid))
2828 {
2829 return ReadContentAsGuid();
2830 }
2831 if (type == typeof(TimeSpan))
2832 {
2833 return ReadContentAsTimeSpan();
2834 }
2835 if (type == typeof(object))
2836 {
2837 return ReadContentAsObject();
2838 }
2839 return base.ReadContentAs(type, namespaceResolver);
2840 }
override UniqueId ReadContentAsUniqueId()
override TimeSpan ReadContentAsTimeSpan()
override double ReadContentAsDouble()
override long ReadContentAsLong()
override decimal ReadContentAsDecimal()
override int ReadContentAsInt()
override string ReadContentAsString()
override Guid ReadContentAsGuid()
void SkipValue(XmlNode node)
override DateTime ReadContentAsDateTime()
override float ReadContentAsFloat()
override object ReadContentAsObject()
override bool ReadContentAsBoolean()

References System.Xml.XmlBaseReader._node, System.Xml.XmlBaseReader._value, System.Xml.Dictionary, System.Xml.XmlBaseReader.XmlNode.IsAtomicValue, System.Xml.XmlBaseReader.ReadContentAsBoolean(), System.Xml.XmlBaseReader.ReadContentAsDateTime(), System.Xml.XmlBaseReader.ReadContentAsDecimal(), System.Xml.XmlBaseReader.ReadContentAsDouble(), System.Xml.XmlBaseReader.ReadContentAsFloat(), System.Xml.XmlBaseReader.ReadContentAsGuid(), System.Xml.XmlBaseReader.ReadContentAsInt(), System.Xml.XmlBaseReader.ReadContentAsLong(), System.Xml.XmlBaseReader.ReadContentAsObject(), System.Xml.XmlBaseReader.ReadContentAsString(), System.Xml.XmlBaseReader.ReadContentAsTimeSpan(), System.Xml.XmlBaseReader.ReadContentAsUniqueId(), System.Xml.XmlBaseReader.SkipValue(), System.Xml.XmlConverter.ToUInt64(), System.Xml.ValueHandle.ToULong(), System.type, and System.Xml.XmlBaseReader.XmlNode.Value.