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