35 references to XmlAtomicValue
System.Private.Xml (35)
System\Xml\Schema\XmlValueConverter.cs (27)
988
if (destinationType == typeof(XmlAtomicValue)) return (new
XmlAtomicValue
(SchemaType!, value));
989
if (destinationType == typeof(XPathItem)) return (new
XmlAtomicValue
(SchemaType!, value));
1054
if (sourceType == typeof(decimal)) return (new
XmlAtomicValue
(SchemaType!, value));
1062
if (sourceType == typeof(decimal)) return (new
XmlAtomicValue
(SchemaType!, value));
1270
if (sourceType == typeof(float)) return (new
XmlAtomicValue
(SchemaType!, value));
1277
if (sourceType == typeof(float)) return (new
XmlAtomicValue
(SchemaType!, value));
1502
if (sourceType == typeof(DateTimeOffset)) return (new
XmlAtomicValue
(SchemaType!, (DateTimeOffset)value));
1509
if (sourceType == typeof(DateTimeOffset)) return (new
XmlAtomicValue
(SchemaType!, (DateTimeOffset)value));
1845
case XmlTypeCode.Base64Binary: return (new
XmlAtomicValue
(SchemaType!, value));
1846
case XmlTypeCode.HexBinary: return (new
XmlAtomicValue
(SchemaType!, value));
1854
case XmlTypeCode.DayTimeDuration: return (new
XmlAtomicValue
(SchemaType!, value));
1855
case XmlTypeCode.Duration: return (new
XmlAtomicValue
(SchemaType!, value));
1856
case XmlTypeCode.YearMonthDuration: return (new
XmlAtomicValue
(SchemaType!, value));
1859
if (IsDerivedFrom(sourceType, typeof(Uri))) if (TypeCode == XmlTypeCode.AnyUri) return (new
XmlAtomicValue
(SchemaType!, value));
2670
if (destinationType == typeof(XmlAtomicValue)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
2760
if (sourceType == typeof(byte)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedByte), value));
2761
if (sourceType == typeof(byte[])) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary), value));
2763
if (sourceType == typeof(DateTimeOffset)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset)value));
2764
if (sourceType == typeof(decimal)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
2766
if (sourceType == typeof(short)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Short), value));
2769
if (sourceType == typeof(sbyte)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Byte), value));
2770
if (sourceType == typeof(float)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
2772
if (sourceType == typeof(TimeSpan)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Duration), value));
2773
if (sourceType == typeof(ushort)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedShort), value));
2774
if (sourceType == typeof(uint)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedInt), value));
2775
if (sourceType == typeof(ulong)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedLong), value));
2776
if (IsDerivedFrom(sourceType, typeof(Uri))) 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));