DekGenius.com
[ Team LiB ] Previous Section Next Section

DateTimeConverter

System.ComponentModel (system.dll)class

As a TypeConverter class, this transforms to and from the System.DateTime type in serialization and design-time scenarios. You would not normally call this class from your own code.

public class DateTimeConverter : TypeConverter {
// Public Constructors
   public DateTimeConverter();
// Public Instance Methods
   public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType);  // overrides TypeConverter
   public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType);  // overrides TypeConverter
   public override object ConvertFrom(ITypeDescriptorContext context, 
        System.Globalization.CultureInfo culture, object value);  // overrides TypeConverter
   public override object ConvertTo(ITypeDescriptorContext context,  
        System.Globalization.CultureInfo culture, object value, Type destinationType);  // overrides TypeConverter
}

Hierarchy

System.Object TypeConverter DateTimeConverter

    [ Team LiB ] Previous Section Next Section