29 references to DateTimeType
System.Xml (29)
System\Xml\Schema\XmlValueConverter.cs (29)
374public override DateTime ToDateTime(bool value) {return (DateTime) ChangeType((object) value, DateTimeType, null); } 375public override DateTime ToDateTime(DateTime value) {return (DateTime) ChangeType((object) value, DateTimeType, null); } 376public override DateTime ToDateTime(DateTimeOffset value) {return (DateTime) ChangeType((object) value, DateTimeType, null); } 377public override DateTime ToDateTime(decimal value) {return (DateTime) ChangeType((object) value, DateTimeType, null); } 378public override DateTime ToDateTime(double value) {return (DateTime) ChangeType((object) value, DateTimeType, null); } 379public override DateTime ToDateTime(int value) {return (DateTime) ChangeType((object) value, DateTimeType, null); } 380public override DateTime ToDateTime(long value) {return (DateTime) ChangeType((object) value, DateTimeType, null); } 381public override DateTime ToDateTime(float value) {return (DateTime) ChangeType((object) value, DateTimeType, null); } 382public override DateTime ToDateTime(string value) {return (DateTime) ChangeType((object) value, DateTimeType, null); } 383public override DateTime ToDateTime(object value) {return (DateTime) ChangeType((object) value, DateTimeType, null); } 1443if (sourceType == DateTimeType) return ((DateTime) value); 1448return (DateTime) ChangeListType(value, DateTimeType, null); 1483if (sourceType == DateTimeType) return ToDateTimeOffset((DateTime)value); 1566if (sourceType == DateTimeType) return this.ToString((DateTime) value); 1583if (destinationType == DateTimeType) return ((DateTime) value); 1596if (destinationType == DateTimeType) return this.ToDateTime((DateTimeOffset) value); 1610if (destinationType == DateTimeType) return this.ToDateTime((string) value); 1626if (destinationType == DateTimeType) return this.ToDateTime(value); 1630if (sourceType == DateTimeType) return (new XmlAtomicValue(SchemaType, (DateTime) value)); 1636if (sourceType == DateTimeType) return (new XmlAtomicValue(SchemaType, (DateTime) value)); 2216return (DateTime) ChangeTypeWildcardDestination(value, DateTimeType, null); 2380if (sourceType == DateTimeType) return DateTimeToString((DateTime) value); 2486if (destinationType == DateTimeType) return UntypedAtomicToDateTime((string) value); 2524if (destinationType == DateTimeType) { 2632if (clrType == DateTimeType) return true; 2774return (DateTime) ChangeTypeWildcardDestination(value, DateTimeType, null); 2970if (destinationType == DateTimeType) { 2996if (sourceType == DateTimeType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime) value)); 3168if (itemTypeDst == DateTimeType) return ToArray<DateTime>(value, nsResolver);