public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { return(TTimeConverterInternal.ConvertTo(value, destinationType, true)); }
/// <summary> /// Returns whether this converter can convert the object to the specified type. /// </summary> /// <param name="context"></param> /// <param name="destinationType"></param> /// <returns></returns> public override Boolean CanConvertTo(ITypeDescriptorContext context, Type destinationType) { return(TTimeConverterInternal.CanConvertTo(destinationType)); }
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { return(TTimeConverterInternal.ConvertFrom(value, true)); }
/// <summary> /// Returns whether this converter can convert an object of the given type to the type of this converter (HH:MM:SS string). /// </summary> /// <param name="context"></param> /// <param name="sourceType"></param> /// <returns></returns> public override Boolean CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { return(TTimeConverterInternal.CanConvertTo(sourceType)); }