public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { if (sourceType == typeof(char) || sourceType == typeof(string)) return true; return false; }