public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) { if (value is string) { CustomValue customValue; if (CustomValue.TryParse((string)value, out customValue)) { return(customValue); } } return(base.ConvertFrom(context, culture, value)); }