99 instantiations of XmlAtomicValue
System.Xml (99)
System\Xml\Schema\DataTypeImplementation.cs (1)
1010
values.Add(new
XmlAtomicValue
(simpleValue.XmlType, simpleValue.TypedValue, nsmgr));
System\Xml\Schema\XmlValueConverter.cs (98)
1067
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, value));
1068
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, value));
1081
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (int) value));
1082
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (int) value));
1095
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (long) value));
1096
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (long) value));
1110
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1111
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1128
if (sourceType == DecimalType) return (new
XmlAtomicValue
(SchemaType, value));
1129
if (sourceType == Int32Type) return (new
XmlAtomicValue
(SchemaType, (int) value));
1130
if (sourceType == Int64Type) return (new
XmlAtomicValue
(SchemaType, (long) value));
1131
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1135
if (sourceType == DecimalType) return (new
XmlAtomicValue
(SchemaType, value));
1136
if (sourceType == Int32Type) return (new
XmlAtomicValue
(SchemaType, (int) value));
1137
if (sourceType == Int64Type) return (new
XmlAtomicValue
(SchemaType, (long) value));
1138
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1334
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (double) value));
1335
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (double) value));
1347
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, value));
1348
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, value));
1361
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1362
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1378
if (sourceType == DoubleType) return (new
XmlAtomicValue
(SchemaType, (double) value));
1379
if (sourceType == SingleType) return (new
XmlAtomicValue
(SchemaType, value));
1380
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1384
if (sourceType == DoubleType) return (new
XmlAtomicValue
(SchemaType, (double) value));
1385
if (sourceType == SingleType) return (new
XmlAtomicValue
(SchemaType, value));
1386
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1586
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (DateTime) value));
1587
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (DateTime) value));
1599
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (DateTimeOffset) value));
1600
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (DateTimeOffset) value));
1613
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1614
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1630
if (sourceType == DateTimeType) return (new
XmlAtomicValue
(SchemaType, (DateTime) value));
1631
if (sourceType == DateTimeOffsetType) return (new
XmlAtomicValue
(SchemaType, (DateTimeOffset)value));
1632
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1636
if (sourceType == DateTimeType) return (new
XmlAtomicValue
(SchemaType, (DateTime) value));
1637
if (sourceType == DateTimeOffsetType) return (new
XmlAtomicValue
(SchemaType, (DateTimeOffset)value));
1638
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1759
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (bool) value));
1760
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (bool) value));
1772
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1773
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1788
if (sourceType == BooleanType) return (new
XmlAtomicValue
(SchemaType, (bool) value));
1789
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1793
if (sourceType == BooleanType) return (new
XmlAtomicValue
(SchemaType, (bool) value));
1794
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string) value));
1932
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string)value, nsResolver));
1996
case XmlTypeCode.Base64Binary: return (new
XmlAtomicValue
(SchemaType, value));
1997
case XmlTypeCode.HexBinary: return (new
XmlAtomicValue
(SchemaType, value));
2000
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value, nsResolver));
2003
case XmlTypeCode.DayTimeDuration: return (new
XmlAtomicValue
(SchemaType, value));
2004
case XmlTypeCode.Duration: return (new
XmlAtomicValue
(SchemaType, value));
2005
case XmlTypeCode.YearMonthDuration: return (new
XmlAtomicValue
(SchemaType, value));
2008
if (IsDerivedFrom(sourceType, UriType)) if (TypeCode == XmlTypeCode.AnyUri) return (new
XmlAtomicValue
(SchemaType, value));
2012
case XmlTypeCode.Notation: return (new
XmlAtomicValue
(SchemaType, value, nsResolver));
2013
case XmlTypeCode.QName: return (new
XmlAtomicValue
(SchemaType, value, nsResolver));
2136
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string) value));
2137
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string) value));
2151
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string) value));
2155
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string) value));
2500
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string) value));
2502
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string) value));
2567
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string) value));
2574
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string) value));
2578
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, this.ToString(value, nsResolver)));
2579
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, this.ToString(value, nsResolver)));
2598
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, this.ToString(value, nsResolver)));
2599
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, this.ToString(value, nsResolver)));
2882
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool) value));
2891
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime) value));
2900
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset) value));
2909
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
2918
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double) value));
2927
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int) value));
2936
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long) value));
2945
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
2955
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string) value));
2993
if (sourceType == BooleanType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool) value));
2994
if (sourceType == ByteType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedByte), value));
2995
if (sourceType == ByteArrayType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary), value));
2996
if (sourceType == DateTimeType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime) value));
2997
if (sourceType == DateTimeOffsetType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset) value));
2998
if (sourceType == DecimalType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
2999
if (sourceType == DoubleType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double) value));
3000
if (sourceType == Int16Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Short), value));
3001
if (sourceType == Int32Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int) value));
3002
if (sourceType == Int64Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long) value));
3003
if (sourceType == SByteType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Byte), value));
3004
if (sourceType == SingleType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
3005
if (sourceType == StringType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string) value));
3006
if (sourceType == TimeSpanType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Duration), value));
3007
if (sourceType == UInt16Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedShort), value));
3008
if (sourceType == UInt32Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedInt), value));
3009
if (sourceType == UInt64Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedLong), value));
3010
if (IsDerivedFrom(sourceType, UriType)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), value));
3011
if (IsDerivedFrom(sourceType, XmlQualifiedNameType)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.QName), value, nsResolver));
90 references to XmlAtomicValue
System.Data.SqlXml (20)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
4123
XmlAtomicValue
value = new XmlAtomicValue(ndLiteral.XmlType.SchemaType, ExtractLiteralValue(ndLiteral));
System\Xml\Xsl\Runtime\XmlAttributeCache.cs (5)
147
Debug.Assert(value is
XmlAtomicValue
, "value should always be an XmlAtomicValue, as XmlAttributeCache is only used by XmlQueryOutput");
150
this.arrAttrs[this.numEntries++].Init((
XmlAtomicValue
) value);
249
private
XmlAtomicValue
value;
257
public
XmlAtomicValue
Value { get { return this.value; } }
282
public void Init(
XmlAtomicValue
value) {
System\Xml\Xsl\Runtime\XmlILStorageConverter.cs (11)
32
public static
XmlAtomicValue
StringToAtomicValue(string value, int index, XmlQueryRuntime runtime) {
36
public static
XmlAtomicValue
DecimalToAtomicValue(decimal value, int index, XmlQueryRuntime runtime) {
40
public static
XmlAtomicValue
Int64ToAtomicValue(long value, int index, XmlQueryRuntime runtime) {
44
public static
XmlAtomicValue
Int32ToAtomicValue(int value, int index, XmlQueryRuntime runtime) {
48
public static
XmlAtomicValue
BooleanToAtomicValue(bool value, int index, XmlQueryRuntime runtime) {
52
public static
XmlAtomicValue
DoubleToAtomicValue(double value, int index, XmlQueryRuntime runtime) {
56
public static
XmlAtomicValue
SingleToAtomicValue(float value, int index, XmlQueryRuntime runtime) {
60
public static
XmlAtomicValue
DateTimeToAtomicValue(DateTime value, int index, XmlQueryRuntime runtime) {
64
public static
XmlAtomicValue
XmlQualifiedNameToAtomicValue(XmlQualifiedName value, int index, XmlQueryRuntime runtime) {
68
public static
XmlAtomicValue
TimeSpanToAtomicValue(TimeSpan value, int index, XmlQueryRuntime runtime) {
72
public static
XmlAtomicValue
BytesToAtomicValue(byte[] value, int index, XmlQueryRuntime runtime) {
System\Xml\Xsl\Runtime\XsltConvert.cs (3)
54
internal static readonly Type XmlAtomicValueType = typeof(
XmlAtomicValue
);
261
internal static
XmlAtomicValue
ConvertToType(
XmlAtomicValue
value, XmlQueryType destinationType) {
System.Xml (70)
System\Xml\Schema\ConstraintStruct.cs (7)
311
XmlAtomicValue
[] atomicValues1 = arr1 as
XmlAtomicValue
[];
322
XmlAtomicValue
[] atomicValues2 = arr2 as
XmlAtomicValue
[];
401
XmlAtomicValue
[] atomicValues = arr as
XmlAtomicValue
[];
404
hashcode += ((
XmlAtomicValue
)atomicValues.GetValue(j)).TypedValue.GetHashCode();
System\Xml\Schema\DataTypeImplementation.cs (5)
882
XmlAtomicValue
[] atomicValues1 = arr1 as
XmlAtomicValue
[];
884
XmlAtomicValue
[] atomicValues2 = arr2 as
XmlAtomicValue
[];
1012
array = values.ToArray(typeof(
XmlAtomicValue
));
System\Xml\Schema\XmlAtomicValue.cs (2)
146
public
XmlAtomicValue
Clone() {
296
if (type == typeof(XPathItem) || type == typeof(
XmlAtomicValue
))
System\Xml\Schema\XmlValueConverter.cs (56)
336
protected static readonly Type XmlAtomicValueArrayType = typeof(
XmlAtomicValue
[]);
343
protected static readonly Type XmlAtomicValueType = typeof(
XmlAtomicValue
);
933
if (sourceType == XmlAtomicValueType) return ((decimal) ((
XmlAtomicValue
) value).ValueAs(DecimalType));
974
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsInt;
1008
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsLong;
1049
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).Value;
1132
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
1139
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
1242
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsDouble;
1286
if (sourceType == XmlAtomicValueType) return ((float) ((
XmlAtomicValue
) value).ValueAs(SingleType));
1317
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).Value;
1381
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
1387
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
1446
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsDateTime;
1486
if (sourceType == XmlAtomicValueType) return (DateTimeOffset)((
XmlAtomicValue
) value).ValueAsDateTime;
1569
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).Value;
1633
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
1639
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
1676
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsBoolean;
1743
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).Value;
1790
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
1795
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
2009
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
2018
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
2021
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAs(destinationType, nsResolver);
2034
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAs(destinationType, nsResolver);
2120
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).Value;
2152
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
2156
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
2395
if (sourceType == XmlAtomicValueType) return ((string) ((
XmlAtomicValue
) value).ValueAs(StringType, nsResolver));
2568
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
2575
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
2580
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAs(destinationType, nsResolver);
2593
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAs(destinationType, nsResolver);
2757
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsBoolean;
2772
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsDateTime;
2786
if (sourceType == XmlAtomicValueType) return (DateTimeOffset)((
XmlAtomicValue
) value).ValueAs(DateTimeOffsetType);
2801
if (sourceType == XmlAtomicValueType) return ((decimal) ((
XmlAtomicValue
) value).ValueAs(DecimalType));
2816
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsDouble;
2831
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsInt;
2846
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsLong;
2861
if (sourceType == XmlAtomicValueType) return ((float) ((
XmlAtomicValue
) value).ValueAs(SingleType));
2968
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsBoolean;
2971
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsDateTime;
2974
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAs(DateTimeOffsetType);
2977
if (sourceType == XmlAtomicValueType) return ((decimal) ((
XmlAtomicValue
) value).ValueAs(DecimalType));
2980
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsDouble;
2983
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsInt;
2986
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAsLong;
2989
if (sourceType == XmlAtomicValueType) return ((float) ((
XmlAtomicValue
) value).ValueAs(SingleType));
2992
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
3014
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value);
3021
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAs(destinationType, nsResolver);
3034
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
) value).ValueAs(destinationType, nsResolver);
3183
if (itemTypeDst == XmlAtomicValueType) return ToArray<
XmlAtomicValue
>(value, nsResolver);
3349
return ((
XmlAtomicValue
) value).ValueAs(destinationType, nsResolver);