9 references to ValueAs
System.Private.Xml (9)
System\Xml\Schema\XmlValueConverter.cs (8)
912
if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).
ValueAs
(DecimalType));
1221
if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).
ValueAs
(SingleType));
2581
if (sourceType == XmlAtomicValueType) return (DateTimeOffset)((XmlAtomicValue)value).
ValueAs
(DateTimeOffsetType);
2597
if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).
ValueAs
(DecimalType));
2661
if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).
ValueAs
(SingleType));
2767
if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).
ValueAs
(DateTimeOffsetType);
2771
if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).
ValueAs
(DecimalType));
2787
if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).
ValueAs
(SingleType));
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
5410
return this.f.LiteralDecimal((decimal)value.
ValueAs
(typeof(decimal)));