35 references to XmlAtomicValue
System.Private.Xml (35)
System\Xml\Schema\XmlValueConverter.cs (27)
1021
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType!, value));
1022
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType!, value));
1087
if (sourceType == DecimalType) return (new
XmlAtomicValue
(SchemaType!, value));
1095
if (sourceType == DecimalType) return (new
XmlAtomicValue
(SchemaType!, value));
1303
if (sourceType == SingleType) return (new
XmlAtomicValue
(SchemaType!, value));
1310
if (sourceType == SingleType) return (new
XmlAtomicValue
(SchemaType!, value));
1535
if (sourceType == DateTimeOffsetType) return (new
XmlAtomicValue
(SchemaType!, (DateTimeOffset)value));
1542
if (sourceType == DateTimeOffsetType) return (new
XmlAtomicValue
(SchemaType!, (DateTimeOffset)value));
1878
case XmlTypeCode.Base64Binary: return (new
XmlAtomicValue
(SchemaType!, value));
1879
case XmlTypeCode.HexBinary: return (new
XmlAtomicValue
(SchemaType!, value));
1887
case XmlTypeCode.DayTimeDuration: return (new
XmlAtomicValue
(SchemaType!, value));
1888
case XmlTypeCode.Duration: return (new
XmlAtomicValue
(SchemaType!, value));
1889
case XmlTypeCode.YearMonthDuration: return (new
XmlAtomicValue
(SchemaType!, value));
1892
if (IsDerivedFrom(sourceType, UriType)) if (TypeCode == XmlTypeCode.AnyUri) return (new
XmlAtomicValue
(SchemaType!, value));
2703
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
2793
if (sourceType == ByteType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedByte), value));
2794
if (sourceType == ByteArrayType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary), value));
2796
if (sourceType == DateTimeOffsetType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset)value));
2797
if (sourceType == DecimalType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
2799
if (sourceType == Int16Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Short), value));
2802
if (sourceType == SByteType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Byte), value));
2803
if (sourceType == SingleType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
2805
if (sourceType == TimeSpanType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Duration), value));
2806
if (sourceType == UInt16Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedShort), value));
2807
if (sourceType == UInt32Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedInt), value));
2808
if (sourceType == UInt64Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedLong), value));
2809
if (IsDerivedFrom(sourceType, UriType)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), value));
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
5400
XmlAtomicValue value = new
XmlAtomicValue
(ndLiteral.XmlType!.SchemaType, ExtractLiteralValue(ndLiteral));
System\Xml\Xsl\Runtime\XmlILStorageConverter.cs (4)
36
return new
XmlAtomicValue
(runtime.GetXmlType(index).SchemaType, value);
71
return new
XmlAtomicValue
(runtime.GetXmlType(index).SchemaType, value);
76
return new
XmlAtomicValue
(runtime.GetXmlType(index).SchemaType, value);
81
return new
XmlAtomicValue
(runtime.GetXmlType(index).SchemaType, value);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
636
value = new XmlQueryItemSequence(new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), value));
647
value = new XmlQueryItemSequence(new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), value));
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
274
return new
XmlAtomicValue
(destinationType.SchemaType, ToDecimal(value.ValueAsDouble));