System\Xml\Schema\XmlValueConverter.cs (67)
1021if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, value));
1022if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, value));
1036if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (int)value));
1037if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (int)value));
1051if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (long)value));
1052if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (long)value));
1067if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (string)value));
1068if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (string)value));
1087if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType!, value));
1088if (sourceType == Int32Type) return (new XmlAtomicValue(SchemaType!, (int)value));
1089if (sourceType == Int64Type) return (new XmlAtomicValue(SchemaType!, (long)value));
1090if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
1095if (sourceType == DecimalType) return (new XmlAtomicValue(SchemaType!, value));
1096if (sourceType == Int32Type) return (new XmlAtomicValue(SchemaType!, (int)value));
1097if (sourceType == Int64Type) return (new XmlAtomicValue(SchemaType!, (long)value));
1098if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
1268if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (double)value));
1269if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (double)value));
1283if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (string)value));
1284if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (string)value));
1302if (sourceType == DoubleType) return (new XmlAtomicValue(SchemaType!, (double)value));
1303if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType!, value));
1304if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
1309if (sourceType == DoubleType) return (new XmlAtomicValue(SchemaType!, (double)value));
1310if (sourceType == SingleType) return (new XmlAtomicValue(SchemaType!, value));
1311if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
1500if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (DateTime)value));
1501if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (DateTime)value));
1515if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (string)value));
1516if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (string)value));
1534if (sourceType == DateTimeType) return (new XmlAtomicValue(SchemaType!, (DateTime)value));
1535if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(SchemaType!, (DateTimeOffset)value));
1536if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
1541if (sourceType == DateTimeType) return (new XmlAtomicValue(SchemaType!, (DateTime)value));
1542if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(SchemaType!, (DateTimeOffset)value));
1543if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
1659if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (bool)value));
1660if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (bool)value));
1673if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (string)value));
1674if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (string)value));
1691if (sourceType == BooleanType) return (new XmlAtomicValue(SchemaType!, (bool)value));
1692if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
1697if (sourceType == BooleanType) return (new XmlAtomicValue(SchemaType!, (bool)value));
1698if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
1794if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (string)value, nsResolver));
1878case XmlTypeCode.Base64Binary: return (new XmlAtomicValue(SchemaType!, value));
1879case XmlTypeCode.HexBinary: return (new XmlAtomicValue(SchemaType!, value));
1882if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value, nsResolver));
1887case XmlTypeCode.DayTimeDuration: return (new XmlAtomicValue(SchemaType!, value));
1888case XmlTypeCode.Duration: return (new XmlAtomicValue(SchemaType!, value));
1889case XmlTypeCode.YearMonthDuration: return (new XmlAtomicValue(SchemaType!, value));
1892if (IsDerivedFrom(sourceType, UriType)) if (TypeCode == XmlTypeCode.AnyUri) return (new XmlAtomicValue(SchemaType!, value));
1898case XmlTypeCode.Notation: return (new XmlAtomicValue(SchemaType!, value, nsResolver));
1899case XmlTypeCode.QName: return (new XmlAtomicValue(SchemaType!, value, nsResolver));
1972if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (string)value));
1973if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (string)value));
1989if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
1994if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
2351if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, (string)value));
2353if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, (string)value));
2437if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
2446if (sourceType == StringType) return (new XmlAtomicValue(SchemaType!, (string)value));
2450if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, this.ToString(value, nsResolver)));
2451if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, this.ToString(value, nsResolver)));
2472if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(SchemaType!, this.ToString(value, nsResolver)));
2473if (destinationType == XPathItemType) return (new XmlAtomicValue(SchemaType!, this.ToString(value, nsResolver)));
3192XsdSimpleValue simpleValue = (XsdSimpleValue)SchemaType!.Datatype!.ParseValue((string)value, new NameTable(), nsResolver, true);