99 instantiations of XmlAtomicValue
dotnet-svcutil-lib (99)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
1147
values.Add(new
XmlAtomicValue
(simpleValue.XmlType, simpleValue.TypedValue, nsmgr));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (98)
1178
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, value));
1179
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, value));
1193
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (int)value));
1194
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (int)value));
1208
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (long)value));
1209
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (long)value));
1224
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1225
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1244
if (sourceType == DecimalType) return (new
XmlAtomicValue
(SchemaType, value));
1245
if (sourceType == Int32Type) return (new
XmlAtomicValue
(SchemaType, (int)value));
1246
if (sourceType == Int64Type) return (new
XmlAtomicValue
(SchemaType, (long)value));
1247
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1252
if (sourceType == DecimalType) return (new
XmlAtomicValue
(SchemaType, value));
1253
if (sourceType == Int32Type) return (new
XmlAtomicValue
(SchemaType, (int)value));
1254
if (sourceType == Int64Type) return (new
XmlAtomicValue
(SchemaType, (long)value));
1255
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1469
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (double)value));
1470
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (double)value));
1483
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, value));
1484
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, value));
1498
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1499
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1517
if (sourceType == DoubleType) return (new
XmlAtomicValue
(SchemaType, (double)value));
1518
if (sourceType == SingleType) return (new
XmlAtomicValue
(SchemaType, value));
1519
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1524
if (sourceType == DoubleType) return (new
XmlAtomicValue
(SchemaType, (double)value));
1525
if (sourceType == SingleType) return (new
XmlAtomicValue
(SchemaType, value));
1526
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1746
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (DateTime)value));
1747
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (DateTime)value));
1760
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (DateTimeOffset)value));
1761
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (DateTimeOffset)value));
1775
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1776
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1794
if (sourceType == DateTimeType) return (new
XmlAtomicValue
(SchemaType, (DateTime)value));
1795
if (sourceType == DateTimeOffsetType) return (new
XmlAtomicValue
(SchemaType, (DateTimeOffset)value));
1796
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1801
if (sourceType == DateTimeType) return (new
XmlAtomicValue
(SchemaType, (DateTime)value));
1802
if (sourceType == DateTimeOffsetType) return (new
XmlAtomicValue
(SchemaType, (DateTimeOffset)value));
1803
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1934
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (bool)value));
1935
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (bool)value));
1948
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1949
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1966
if (sourceType == BooleanType) return (new
XmlAtomicValue
(SchemaType, (bool)value));
1967
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
1972
if (sourceType == BooleanType) return (new
XmlAtomicValue
(SchemaType, (bool)value));
1973
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
2129
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string)value, nsResolver));
2213
case XmlTypeCode.Base64Binary: return (new
XmlAtomicValue
(SchemaType, value));
2214
case XmlTypeCode.HexBinary: return (new
XmlAtomicValue
(SchemaType, value));
2217
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value, nsResolver));
2222
case XmlTypeCode.DayTimeDuration: return (new
XmlAtomicValue
(SchemaType, value));
2223
case XmlTypeCode.Duration: return (new
XmlAtomicValue
(SchemaType, value));
2224
case XmlTypeCode.YearMonthDuration: return (new
XmlAtomicValue
(SchemaType, value));
2227
if (IsDerivedFrom(sourceType, UriType)) if (TypeCode == XmlTypeCode.AnyUri) return (new
XmlAtomicValue
(SchemaType, value));
2233
case XmlTypeCode.Notation: return (new
XmlAtomicValue
(SchemaType, value, nsResolver));
2234
case XmlTypeCode.QName: return (new
XmlAtomicValue
(SchemaType, value, nsResolver));
2366
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string)value));
2367
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string)value));
2383
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
2388
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
2771
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, (string)value));
2773
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, (string)value));
2857
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
2866
if (sourceType == StringType) return (new
XmlAtomicValue
(SchemaType, (string)value));
2870
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, this.ToString(value, nsResolver)));
2871
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, this.ToString(value, nsResolver)));
2892
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(SchemaType, this.ToString(value, nsResolver)));
2893
if (destinationType == XPathItemType) return (new
XmlAtomicValue
(SchemaType, this.ToString(value, nsResolver)));
3195
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool)value));
3205
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime)value));
3215
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset)value));
3225
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
3235
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double)value));
3245
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int)value));
3255
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long)value));
3265
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
3276
if (destinationType == XmlAtomicValueType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string)value));
3324
if (sourceType == BooleanType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool)value));
3325
if (sourceType == ByteType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedByte), value));
3326
if (sourceType == ByteArrayType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary), value));
3327
if (sourceType == DateTimeType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime)value));
3328
if (sourceType == DateTimeOffsetType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset)value));
3329
if (sourceType == DecimalType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
3330
if (sourceType == DoubleType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double)value));
3331
if (sourceType == Int16Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Short), value));
3332
if (sourceType == Int32Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int)value));
3333
if (sourceType == Int64Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long)value));
3334
if (sourceType == SByteType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Byte), value));
3335
if (sourceType == SingleType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
3336
if (sourceType == StringType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string)value));
3337
if (sourceType == TimeSpanType) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Duration), value));
3338
if (sourceType == UInt16Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedShort), value));
3339
if (sourceType == UInt32Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedInt), value));
3340
if (sourceType == UInt64Type) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedLong), value));
3341
if (IsDerivedFrom(sourceType, UriType)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), value));
3342
if (IsDerivedFrom(sourceType, XmlQualifiedNameType)) return (new
XmlAtomicValue
(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.QName), value, nsResolver));
71 references to XmlAtomicValue
dotnet-svcutil-lib (71)
FrameworkFork\Microsoft.Xml\Xml\schema\ConstraintStruct.cs (7)
359
XmlAtomicValue
[] atomicValues1 = arr1 as
XmlAtomicValue
[];
373
XmlAtomicValue
[] atomicValues2 = arr2 as
XmlAtomicValue
[];
474
XmlAtomicValue
[] atomicValues = arr as
XmlAtomicValue
[];
479
_hashcode += ((
XmlAtomicValue
)atomicValues.GetValue(j)).TypedValue.GetHashCode();
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (5)
993
XmlAtomicValue
[] atomicValues1 = arr1 as
XmlAtomicValue
[];
996
XmlAtomicValue
[] atomicValues2 = arr2 as
XmlAtomicValue
[];
1149
array = values.ToArray(typeof(
XmlAtomicValue
));
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
996
if (name == "XmlAtomicValue") return typeof(
XmlAtomicValue
);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlAtomicValue.cs (2)
168
public
XmlAtomicValue
Clone()
348
if (type == typeof(XPathItem) || type == typeof(
XmlAtomicValue
))
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (56)
347
protected static readonly Type XmlAtomicValueArrayType = typeof(
XmlAtomicValue
[]);
354
protected static readonly Type XmlAtomicValueType = typeof(
XmlAtomicValue
);
1028
if (sourceType == XmlAtomicValueType) return ((decimal)((
XmlAtomicValue
)value).ValueAs(DecimalType));
1074
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsInt;
1113
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsLong;
1159
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).Value;
1248
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
1256
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
1368
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsDouble;
1416
if (sourceType == XmlAtomicValueType) return ((float)((
XmlAtomicValue
)value).ValueAs(SingleType));
1451
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).Value;
1520
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
1527
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
1594
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsDateTime;
1639
if (sourceType == XmlAtomicValueType) return (DateTimeOffset)((
XmlAtomicValue
)value).ValueAsDateTime;
1728
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).Value;
1797
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
1804
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
1847
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsBoolean;
1917
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).Value;
1968
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
1974
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
2228
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
2240
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
2243
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAs(destinationType, nsResolver);
2257
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAs(destinationType, nsResolver);
2349
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).Value;
2384
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
2389
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
2657
if (sourceType == XmlAtomicValueType) return ((string)((
XmlAtomicValue
)value).ValueAs(StringType, nsResolver));
2858
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
2867
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
2872
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAs(destinationType, nsResolver);
2886
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAs(destinationType, nsResolver);
3062
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsBoolean;
3078
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsDateTime;
3093
if (sourceType == XmlAtomicValueType) return (DateTimeOffset)((
XmlAtomicValue
)value).ValueAs(DateTimeOffsetType);
3109
if (sourceType == XmlAtomicValueType) return ((decimal)((
XmlAtomicValue
)value).ValueAs(DecimalType));
3125
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsDouble;
3141
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsInt;
3157
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsLong;
3173
if (sourceType == XmlAtomicValueType) return ((float)((
XmlAtomicValue
)value).ValueAs(SingleType));
3291
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsBoolean;
3295
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsDateTime;
3299
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAs(DateTimeOffsetType);
3303
if (sourceType == XmlAtomicValueType) return ((decimal)((
XmlAtomicValue
)value).ValueAs(DecimalType));
3307
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsDouble;
3311
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsInt;
3315
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAsLong;
3319
if (sourceType == XmlAtomicValueType) return ((float)((
XmlAtomicValue
)value).ValueAs(SingleType));
3323
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
3346
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value);
3354
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAs(destinationType, nsResolver);
3368
if (sourceType == XmlAtomicValueType) return ((
XmlAtomicValue
)value).ValueAs(destinationType, nsResolver);
3532
if (itemTypeDst == XmlAtomicValueType) return ToArray<
XmlAtomicValue
>(value, nsResolver);
3713
return ((
XmlAtomicValue
)value).ValueAs(destinationType, nsResolver);