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

◆ ChangeType() [9/9]

override object System.Xml.Schema.XmlNumeric2Converter.ChangeType ( string value,
Type destinationType,
IXmlNamespaceResolver nsResolver )
inline

Definition at line 175 of file XmlNumeric2Converter.cs.

176 {
177 if (value == null)
178 {
179 throw new ArgumentNullException("value");
180 }
181 if (destinationType == null)
182 {
183 throw new ArgumentNullException("destinationType");
184 }
185 if (destinationType == XmlBaseConverter.ObjectType)
186 {
187 destinationType = base.DefaultClrType;
188 }
189 if (destinationType == XmlBaseConverter.DoubleType)
190 {
191 return ToDouble(value);
192 }
193 if (destinationType == XmlBaseConverter.SingleType)
194 {
195 return ToSingle(value);
196 }
197 if (destinationType == XmlBaseConverter.StringType)
198 {
199 return value;
200 }
201 if (destinationType == XmlBaseConverter.XmlAtomicValueType)
202 {
203 return new XmlAtomicValue(base.SchemaType, value);
204 }
205 if (destinationType == XmlBaseConverter.XPathItemType)
206 {
207 return new XmlAtomicValue(base.SchemaType, value);
208 }
210 }
virtual object ChangeListType(object value, Type destinationType, IXmlNamespaceResolver nsResolver)
XmlBaseConverter(XmlSchemaType schemaType)
override double ToDouble(string value)

References System.Xml.Schema.XmlBaseConverter.ChangeListType(), System.Xml.Dictionary, System.Xml.Schema.XmlBaseConverter.DoubleType, System.Xml.Schema.XmlBaseConverter.ObjectType, System.Xml.Schema.XmlBaseConverter.SingleType, System.Xml.Schema.XmlBaseConverter.StringType, System.Xml.Schema.XmlNumeric2Converter.ToDouble(), System.Xml.Schema.XmlNumeric2Converter.ToSingle(), System.value, System.Xml.Schema.XmlBaseConverter.XmlAtomicValueType, and System.Xml.Schema.XmlBaseConverter.XPathItemType.