System\Xml\Schema\XmlValueConverter.cs (25)
336public override DateTime ToDateTime(bool value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
337public override DateTime ToDateTime(DateTimeOffset value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
338public override DateTime ToDateTime(double value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
339public override DateTime ToDateTime(int value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
340public override DateTime ToDateTime(long value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
341public override DateTime ToDateTime(string value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
342public override DateTime ToDateTime(object value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
1360if (sourceType == DateTimeType) return ((DateTime)value);
1365return (DateTime)ChangeListType(value, DateTimeType, null);
1400if (sourceType == DateTimeType) return ToDateTimeOffset((DateTime)value);
1479if (sourceType == DateTimeType) return this.ToString((DateTime)value);
1497if (destinationType == DateTimeType) return ((DateTime)value);
1512if (destinationType == DateTimeType) return this.ToDateTime((string)value);
1529if (destinationType == DateTimeType) return this.ToDateTime(value);
1534if (sourceType == DateTimeType) return (new XmlAtomicValue(SchemaType!, (DateTime)value));
1541if (sourceType == DateTimeType) return (new XmlAtomicValue(SchemaType!, (DateTime)value));
2062return (DateTime)ChangeTypeWildcardDestination(value, DateTimeType, null);
2242if (sourceType == DateTimeType) return DateTimeToString((DateTime)value);
2337if (destinationType == DateTimeType) return UntypedAtomicToDateTime((string)value);
2379if (destinationType == DateTimeType)
2509if (clrType == DateTimeType) return true;
2568return (DateTime)ChangeTypeWildcardDestination(value, DateTimeType, null);
2761if (destinationType == DateTimeType)
2795if (sourceType == DateTimeType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime)value));
2985if (itemTypeDst == DateTimeType) return ToArray<DateTime>(value, nsResolver);