public override bool IsValid(ITypeDescriptorContext context, object value) { object result; return(Converter.TryConvert(value, convObj.GetType(), out result)); }
public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) { return(Converter.Convert(convObj, destinationType)); }
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { return(Converter.CanConvertFrom(sourceType, convObj.GetType(), NarrowingLevel.All, true)); }
public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) { return(Converter.Convert(value, convObj.GetType())); }
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) { object result; return(Converter.TryConvert(convObj, destinationType, out result)); }