FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (71)
1178if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, value));
1179if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, value));
1193if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (int)value));
1194if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (int)value));
1208if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (long)value));
1209if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (long)value));
1224if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
1225if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (string)value));
1244if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType, value));
1245if (sourceType == Int32Type) return (new XmlAtomicValue(SchemaType, (int)value));
1246if (sourceType == Int64Type) return (new XmlAtomicValue(SchemaType, (long)value));
1247if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
1252if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType, value));
1253if (sourceType == Int32Type) return (new XmlAtomicValue(SchemaType, (int)value));
1254if (sourceType == Int64Type) return (new XmlAtomicValue(SchemaType, (long)value));
1255if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
1469if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (double)value));
1470if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (double)value));
1483if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, value));
1484if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, value));
1498if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
1499if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (string)value));
1517if (sourceType == DoubleType) return (new XmlAtomicValue(SchemaType, (double)value));
1518if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType, value));
1519if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
1524if (sourceType == DoubleType) return (new XmlAtomicValue(SchemaType, (double)value));
1525if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType, value));
1526if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
1746if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (DateTime)value));
1747if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (DateTime)value));
1760if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (DateTimeOffset)value));
1761if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (DateTimeOffset)value));
1775if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
1776if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (string)value));
1794if (sourceType == DateTimeType) return (new XmlAtomicValue(SchemaType, (DateTime)value));
1795if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(SchemaType, (DateTimeOffset)value));
1796if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
1801if (sourceType == DateTimeType) return (new XmlAtomicValue(SchemaType, (DateTime)value));
1802if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(SchemaType, (DateTimeOffset)value));
1803if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
1934if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (bool)value));
1935if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (bool)value));
1948if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
1949if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (string)value));
1966if (sourceType == BooleanType) return (new XmlAtomicValue(SchemaType, (bool)value));
1967if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
1972if (sourceType == BooleanType) return (new XmlAtomicValue(SchemaType, (bool)value));
1973if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
2129if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value, nsResolver));
2213case XmlTypeCode.Base64Binary: return (new XmlAtomicValue(SchemaType, value));
2214case XmlTypeCode.HexBinary: return (new XmlAtomicValue(SchemaType, value));
2217if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value, nsResolver));
2222case XmlTypeCode.DayTimeDuration: return (new XmlAtomicValue(SchemaType, value));
2223case XmlTypeCode.Duration: return (new XmlAtomicValue(SchemaType, value));
2224case XmlTypeCode.YearMonthDuration: return (new XmlAtomicValue(SchemaType, value));
2227if (IsDerivedFrom(sourceType, UriType)) if (TypeCode == XmlTypeCode.AnyUri) return (new XmlAtomicValue(SchemaType, value));
2233case XmlTypeCode.Notation: return (new XmlAtomicValue(SchemaType, value, nsResolver));
2234case XmlTypeCode.QName: return (new XmlAtomicValue(SchemaType, value, nsResolver));
2366if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
2367if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (string)value));
2383if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
2388if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
2771if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, (string)value));
2773if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, (string)value));
2857if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
2866if (sourceType == StringType) return (new XmlAtomicValue(SchemaType, (string)value));
2870if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, this.ToString(value, nsResolver)));
2871if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, this.ToString(value, nsResolver)));
2892if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType, this.ToString(value, nsResolver)));
2893if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType, this.ToString(value, nsResolver)));
3724XsdSimpleValue simpleValue = (XsdSimpleValue)SchemaType.Datatype.ParseValue((string)value, new NameTable(), nsResolver, true);