Provides methods for converting between the DateTime and string types.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class DateTimeTypeConverter : TypeConverter
Inheritance: objectTypeConverterDateTimeTypeConverter
Inherited Members
Constructors
public DateTimeTypeConverter()
Methods
Determines whether this instance [can convert from] the specified context.
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
The context.
sourceTypeTypeType of the source.
Returns:true if this instance [can convert from] the specified context; otherwise, false.
Overrides:
Returns whether the type converter can convert an object to the specified type to the type of this converter.
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
The context.
destinationTypeTypeThe type you want to convert to.
Returns:True if this converter can perform the conversion; otherwise, false.
Exceptions:destinationType is null.
Overrides:
Converts from the specified value to the type of this converter.
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
The context.
cultureCultureInfoThe culture.
valueobjectThe value to convert to the type of this converter.
Returns:The converted value.
Exceptions:The conversion cannot be performed.
Overrides:
Converts from the specified value to the type of this converter.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
The context.
cultureCultureInfoThe culture.
valueobjectThe value.
destinationTypeTypeType of the destination.
Returns:Overrides: