FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (93)
317_clrTypeDefault = XmlAtomicValueType;
1028if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).ValueAs(DecimalType));
1074if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsInt;
1113if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsLong;
1159if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).Value;
1178if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, value));
1193if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (int)value));
1208if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (long)value));
1224if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
1242if (destinationType == XmlAtomicValueType)
1248if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
1256if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
1368if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsDouble;
1416if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).ValueAs(SingleType));
1451if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).Value;
1469if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (double)value));
1483if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, value));
1498if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
1515if (destinationType == XmlAtomicValueType)
1520if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
1527if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
1594if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsDateTime;
1639if (sourceType == XmlAtomicValueType) return (DateTimeOffset)((XmlAtomicValue)value).ValueAsDateTime;
1728if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).Value;
1746if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (DateTime)value));
1760if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (DateTimeOffset)value));
1775if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
1792if (destinationType == XmlAtomicValueType)
1797if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
1804if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
1847if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsBoolean;
1917if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).Value;
1934if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (bool)value));
1948if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
1964if (destinationType == XmlAtomicValueType)
1968if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
1974if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
2129if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value, nsResolver));
2207if (destinationType == XmlAtomicValueType)
2228if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
2240if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
2242if (destinationType == XPathItemType) return ((XPathItem)this.ChangeType(value, XmlAtomicValueType, nsResolver));
2243if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAs(destinationType, nsResolver);
2257if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAs(destinationType, nsResolver);
2263if (destinationType == XPathItemType) return ((XPathItem)this.ChangeType(value, XmlAtomicValueType, nsResolver));
2349if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).Value;
2366if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
2381if (destinationType == XmlAtomicValueType)
2384if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
2389if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
2657if (sourceType == XmlAtomicValueType) return ((string)((XmlAtomicValue)value).ValueAs(StringType, nsResolver));
2771if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
2855if (destinationType == XmlAtomicValueType)
2858if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
2867if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
2870if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, this.ToString(value, nsResolver)));
2872if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAs(destinationType, nsResolver);
2886if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAs(destinationType, nsResolver);
2892if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, this.ToString(value, nsResolver)));
3062if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsBoolean;
3078if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsDateTime;
3093if (sourceType == XmlAtomicValueType) return (DateTimeOffset)((XmlAtomicValue)value).ValueAs(DateTimeOffsetType);
3109if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).ValueAs(DecimalType));
3125if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsDouble;
3141if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsInt;
3157if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsLong;
3173if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).ValueAs(SingleType));
3195if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool)value));
3205if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime)value));
3215if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset)value));
3225if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
3235if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double)value));
3245if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int)value));
3255if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long)value));
3265if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
3276if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string)value));
3291if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsBoolean;
3295if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsDateTime;
3299if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAs(DateTimeOffsetType);
3303if (sourceType == XmlAtomicValueType) return ((decimal)((XmlAtomicValue)value).ValueAs(DecimalType));
3307if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsDouble;
3311if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsInt;
3315if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAsLong;
3319if (sourceType == XmlAtomicValueType) return ((float)((XmlAtomicValue)value).ValueAs(SingleType));
3321if (destinationType == XmlAtomicValueType)
3323if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
3346if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value);
3353if (destinationType == XPathItemType) return ((XPathItem)this.ChangeType(value, XmlAtomicValueType, nsResolver));
3354if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAs(destinationType, nsResolver);
3368if (sourceType == XmlAtomicValueType) return ((XmlAtomicValue)value).ValueAs(destinationType, nsResolver);
3374if (destinationType == XPathItemType) return ((XPathItem)this.ChangeType(value, XmlAtomicValueType, nsResolver));
3532if (itemTypeDst == XmlAtomicValueType) return ToArray<XmlAtomicValue>(value, nsResolver);
3712if (sourceType == XmlAtomicValueType && _hasAtomicMember)