System\Xml\Schema\XmlValueConverter.cs (93)
308this.clrTypeDefault = XmlAtomicValueType;
933if (sourceType == XmlAtomicValueType) return ((decimal) ((XmlAtomicValue) value).ValueAs(DecimalType));
974if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsInt;
1008if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsLong;
1049if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).Value;
1067if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, value));
1081if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (int) value));
1095if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (long) value));
1110if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string) value));
1127if (destinationType == XmlAtomicValueType) {
1132if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
1139if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
1242if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsDouble;
1286if (sourceType == XmlAtomicValueType) return ((float) ((XmlAtomicValue) value).ValueAs(SingleType));
1317if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).Value;
1334if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (double) value));
1347if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, value));
1361if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string) value));
1377if (destinationType == XmlAtomicValueType) {
1381if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
1387if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
1446if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsDateTime;
1486if (sourceType == XmlAtomicValueType) return (DateTimeOffset)((XmlAtomicValue) value).ValueAsDateTime;
1569if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).Value;
1586if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (DateTime) value));
1599if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (DateTimeOffset) value));
1613if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string) value));
1629if (destinationType == XmlAtomicValueType) {
1633if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
1639if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
1676if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsBoolean;
1743if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).Value;
1759if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (bool) value));
1772if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string) value));
1787if (destinationType == XmlAtomicValueType) {
1790if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
1795if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
1932if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value, nsResolver));
1993if (destinationType == XmlAtomicValueType) {
2009if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
2018if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
2020if (destinationType == XPathItemType) return ((XPathItem) this.ChangeType(value, XmlAtomicValueType, nsResolver));
2021if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAs(destinationType, nsResolver);
2034if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAs(destinationType, nsResolver);
2039if (destinationType == XPathItemType) return ((XPathItem) this.ChangeType(value, XmlAtomicValueType, nsResolver));
2120if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).Value;
2136if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string) value));
2150if (destinationType == XmlAtomicValueType) {
2152if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
2156if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
2395if (sourceType == XmlAtomicValueType) return ((string) ((XmlAtomicValue) value).ValueAs(StringType, nsResolver));
2500if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string) value));
2566if (destinationType == XmlAtomicValueType) {
2568if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
2575if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
2578if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, this.ToString(value, nsResolver)));
2580if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAs(destinationType, nsResolver);
2593if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAs(destinationType, nsResolver);
2598if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, this.ToString(value, nsResolver)));
2757if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsBoolean;
2772if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsDateTime;
2786if (sourceType == XmlAtomicValueType) return (DateTimeOffset)((XmlAtomicValue) value).ValueAs(DateTimeOffsetType);
2801if (sourceType == XmlAtomicValueType) return ((decimal) ((XmlAtomicValue) value).ValueAs(DecimalType));
2816if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsDouble;
2831if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsInt;
2846if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsLong;
2861if (sourceType == XmlAtomicValueType) return ((float) ((XmlAtomicValue) value).ValueAs(SingleType));
2882if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool) value));
2891if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime) value));
2900if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset) value));
2909if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
2918if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double) value));
2927if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int) value));
2936if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long) value));
2945if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
2955if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string) value));
2968if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsBoolean;
2971if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsDateTime;
2974if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAs(DateTimeOffsetType);
2977if (sourceType == XmlAtomicValueType) return ((decimal) ((XmlAtomicValue) value).ValueAs(DecimalType));
2980if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsDouble;
2983if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsInt;
2986if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAsLong;
2989if (sourceType == XmlAtomicValueType) return ((float) ((XmlAtomicValue) value).ValueAs(SingleType));
2991if (destinationType == XmlAtomicValueType) {
2992if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
3014if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value);
3020if (destinationType == XPathItemType) return ((XPathItem) this.ChangeType(value, XmlAtomicValueType, nsResolver));
3021if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAs(destinationType, nsResolver);
3034if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue) value).ValueAs(destinationType, nsResolver);
3039if (destinationType == XPathItemType) return ((XPathItem) this.ChangeType(value, XmlAtomicValueType, nsResolver));
3183if (itemTypeDst == XmlAtomicValueType) return ToArray<XmlAtomicValue>(value, nsResolver);
3348if (sourceType == XmlAtomicValueType && hasAtomicMember)