System\Xml\Schema\XmlValueConverter.cs (26)
346public override decimal ToDecimal(string value) { return (decimal)ChangeType((object)value, DecimalType, null); }
347public override decimal ToDecimal(object value) { return (decimal)ChangeType((object)value, DecimalType, null); }
908if (sourceType == DecimalType) return ((decimal)value);
912if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).ValueAs(DecimalType));
914return (decimal)ChangeTypeWildcardDestination(value, DecimalType, null);
933if (sourceType == DecimalType) return DecimalToInt32((decimal)value);
958if (sourceType == DecimalType) return DecimalToInt64((decimal)value);
998if (sourceType == DecimalType) return this.ToString((decimal)value);
1017if (destinationType == DecimalType) return ((decimal)value);
1032if (destinationType == DecimalType) return ((decimal)(int)value);
1047if (destinationType == DecimalType) return ((decimal)(long)value);
1063if (destinationType == DecimalType) return this.ToDecimal((string)value);
1081if (destinationType == DecimalType) return this.ToDecimal(value);
1087if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType!, value));
1095if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType!, value));
2105return (decimal)ChangeTypeWildcardDestination(value, DecimalType, null);
2244if (sourceType == DecimalType) return XmlConvert.ToString((decimal)value);
2339if (destinationType == DecimalType) return XmlConvert.ToDecimal((string)value);
2387if (destinationType == DecimalType)
2511if (clrType == DecimalType) return true;
2597if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).ValueAs(DecimalType));
2599return (decimal)ChangeTypeWildcardDestination(value, DecimalType, null);
2769if (destinationType == DecimalType)
2771if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).ValueAs(DecimalType));
2797if (sourceType == DecimalType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
2987if (itemTypeDst == DecimalType) return ToArray<decimal>(value, nsResolver);