System\Xml\Schema\XmlValueConverter.cs (34)
396public override decimal ToDecimal(bool value) {return (decimal) ChangeType((object) value, DecimalType, null); }
397public override decimal ToDecimal(DateTime value) {return (decimal) ChangeType((object) value, DecimalType, null); }
398public override decimal ToDecimal(DateTimeOffset value) {return (decimal) ChangeType((object) value, DecimalType, null); }
399public override decimal ToDecimal(decimal value) {return (decimal) ChangeType((object) value, DecimalType, null); }
400public override decimal ToDecimal(double value) {return (decimal) ChangeType((object) value, DecimalType, null); }
401public override decimal ToDecimal(int value) {return (decimal) ChangeType((object) value, DecimalType, null); }
402public override decimal ToDecimal(long value) {return (decimal) ChangeType((object) value, DecimalType, null); }
403public override decimal ToDecimal(float value) {return (decimal) ChangeType((object) value, DecimalType, null); }
404public override decimal ToDecimal(string value) {return (decimal) ChangeType((object) value, DecimalType, null); }
405public override decimal ToDecimal(object value) {return (decimal) ChangeType((object) value, DecimalType, null); }
929if (sourceType == DecimalType) return ((decimal) value);
933if (sourceType == XmlAtomicValueType) return ((decimal) ((XmlAtomicValue) value).ValueAs(DecimalType));
935return (decimal) ChangeTypeWildcardDestination(value, DecimalType, null);
970if (sourceType == DecimalType) return DecimalToInt32((decimal) value);
1004if (sourceType == DecimalType) return DecimalToInt64((decimal) value);
1045if (sourceType == DecimalType) return this.ToString((decimal) value);
1063if (destinationType == DecimalType) return ((decimal) value);
1077if (destinationType == DecimalType) return ((decimal) (int) value);
1091if (destinationType == DecimalType) return ((decimal) (long) value);
1106if (destinationType == DecimalType) return this.ToDecimal((string) value);
1123if (destinationType == DecimalType) return this.ToDecimal(value);
1128if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType, value));
1135if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType, value));
2255return (decimal) ChangeTypeWildcardDestination(value, DecimalType, null);
2382if (sourceType == DecimalType) return XmlConvert.ToString((decimal) value);
2488if (destinationType == DecimalType) return XmlConvert.ToDecimal((string) value);
2530if (destinationType == DecimalType) {
2634if (clrType == DecimalType) return true;
2801if (sourceType == XmlAtomicValueType) return ((decimal) ((XmlAtomicValue) value).ValueAs(DecimalType));
2803return (decimal) ChangeTypeWildcardDestination(value, DecimalType, null);
2976if (destinationType == DecimalType) {
2977if (sourceType == XmlAtomicValueType) return ((decimal) ((XmlAtomicValue) value).ValueAs(DecimalType));
2998if (sourceType == DecimalType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
3170if (itemTypeDst == DecimalType) return ToArray<decimal>(value, nsResolver);