FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (34)
407public override decimal ToDecimal(bool value) { return (decimal)ChangeType((object)value, DecimalType, null); }
408public override decimal ToDecimal(DateTime value) { return (decimal)ChangeType((object)value, DecimalType, null); }
409public override decimal ToDecimal(DateTimeOffset value) { return (decimal)ChangeType((object)value, DecimalType, null); }
410public override decimal ToDecimal(decimal value) { return (decimal)ChangeType((object)value, DecimalType, null); }
411public override decimal ToDecimal(double value) { return (decimal)ChangeType((object)value, DecimalType, null); }
412public override decimal ToDecimal(int value) { return (decimal)ChangeType((object)value, DecimalType, null); }
413public override decimal ToDecimal(long value) { return (decimal)ChangeType((object)value, DecimalType, null); }
414public override decimal ToDecimal(float value) { return (decimal)ChangeType((object)value, DecimalType, null); }
415public override decimal ToDecimal(string value) { return (decimal)ChangeType((object)value, DecimalType, null); }
416public override decimal ToDecimal(object value) { return (decimal)ChangeType((object)value, DecimalType, null); }
1024if (sourceType == DecimalType) return ((decimal)value);
1028if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).ValueAs(DecimalType));
1030return (decimal)ChangeTypeWildcardDestination(value, DecimalType, null);
1070if (sourceType == DecimalType) return DecimalToInt32((decimal)value);
1109if (sourceType == DecimalType) return DecimalToInt64((decimal)value);
1155if (sourceType == DecimalType) return this.ToString((decimal)value);
1174if (destinationType == DecimalType) return ((decimal)value);
1189if (destinationType == DecimalType) return ((decimal)(int)value);
1204if (destinationType == DecimalType) return ((decimal)(long)value);
1220if (destinationType == DecimalType) return this.ToDecimal((string)value);
1238if (destinationType == DecimalType) return this.ToDecimal(value);
1244if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType, value));
1252if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType, value));
2499return (decimal)ChangeTypeWildcardDestination(value, DecimalType, null);
2644if (sourceType == DecimalType) return XmlConvert.ToString((decimal)value);
2759if (destinationType == DecimalType) return XmlConvert.ToDecimal((string)value);
2807if (destinationType == DecimalType)
2931if (clrType == DecimalType) return true;
3109if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).ValueAs(DecimalType));
3111return (decimal)ChangeTypeWildcardDestination(value, DecimalType, null);
3301if (destinationType == DecimalType)
3303if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).ValueAs(DecimalType));
3329if (sourceType == DecimalType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
3519if (itemTypeDst == DecimalType) return ToArray<decimal>(value, nsResolver);