11 references to ValueAs
System.Data.Entity (2)
System\Data\Mapping\FunctionImportMapping.cs (1)
640
return _xPathValue.
ValueAs
(columnValueType);
System\Data\Metadata\Helper.cs (1)
79
attributeValue = nav.
ValueAs
(clrType);
System.Data.SqlXml (1)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
4133
return this.f.LiteralDecimal((decimal) value.
ValueAs
(XsltConvert.DecimalType));
System.Xml (8)
System\Xml\Schema\XmlValueConverter.cs (8)
933
if (sourceType == XmlAtomicValueType) return ((decimal) ((XmlAtomicValue) value).
ValueAs
(DecimalType));
1286
if (sourceType == XmlAtomicValueType) return ((float) ((XmlAtomicValue) value).
ValueAs
(SingleType));
2786
if (sourceType == XmlAtomicValueType) return (DateTimeOffset)((XmlAtomicValue) value).
ValueAs
(DateTimeOffsetType);
2801
if (sourceType == XmlAtomicValueType) return ((decimal) ((XmlAtomicValue) value).
ValueAs
(DecimalType));
2861
if (sourceType == XmlAtomicValueType) return ((float) ((XmlAtomicValue) value).
ValueAs
(SingleType));
2974
if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).
ValueAs
(DateTimeOffsetType);
2977
if (sourceType == XmlAtomicValueType) return ((decimal) ((XmlAtomicValue) value).
ValueAs
(DecimalType));
2989
if (sourceType == XmlAtomicValueType) return ((float) ((XmlAtomicValue) value).
ValueAs
(SingleType));