FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (29)
385public override DateTime ToDateTime(bool value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
386public override DateTime ToDateTime(DateTime value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
387public override DateTime ToDateTime(DateTimeOffset value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
388public override DateTime ToDateTime(decimal value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
389public override DateTime ToDateTime(double value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
390public override DateTime ToDateTime(int value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
391public override DateTime ToDateTime(long value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
392public override DateTime ToDateTime(float value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
393public override DateTime ToDateTime(string value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
394public override DateTime ToDateTime(object value) { return (DateTime)ChangeType((object)value, DateTimeType, null); }
1591if (sourceType == DateTimeType) return ((DateTime)value);
1596return (DateTime)ChangeListType(value, DateTimeType, null);
1636if (sourceType == DateTimeType) return ToDateTimeOffset((DateTime)value);
1725if (sourceType == DateTimeType) return this.ToString((DateTime)value);
1743if (destinationType == DateTimeType) return ((DateTime)value);
1757if (destinationType == DateTimeType) return this.ToDateTime((DateTimeOffset)value);
1772if (destinationType == DateTimeType) return this.ToDateTime((string)value);
1789if (destinationType == DateTimeType) return this.ToDateTime(value);
1794if (sourceType == DateTimeType) return (new XmlAtomicValue(SchemaType, (DateTime)value));
1801if (sourceType == DateTimeType) return (new XmlAtomicValue(SchemaType, (DateTime)value));
2456return (DateTime)ChangeTypeWildcardDestination(value, DateTimeType, null);
2642if (sourceType == DateTimeType) return DateTimeToString((DateTime)value);
2757if (destinationType == DateTimeType) return UntypedAtomicToDateTime((string)value);
2799if (destinationType == DateTimeType)
2929if (clrType == DateTimeType) return true;
3080return (DateTime)ChangeTypeWildcardDestination(value, DateTimeType, null);
3293if (destinationType == DateTimeType)
3327if (sourceType == DateTimeType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime)value));
3517if (itemTypeDst == DateTimeType) return ToArray<DateTime>(value, nsResolver);