2007-08-28 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / KeysConverter.cs
index 0c91047565202584c4fc3a599d77e9792011cf18..af8286784768a97faea91734e05e03776f64f0eb 100644 (file)
@@ -45,6 +45,16 @@ namespace System.Windows.Forms {
                        return false;
                }
 
+#if NET_2_0
+               public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
+               {
+                       if (destinationType == typeof (Enum[]))
+                               return true;
+                               
+                       return base.CanConvertTo (context, destinationType);
+               }
+#endif
+
                public int Compare(object a, object b) {
                        if (a is string && b is string) {
                                return String.Compare((string) a, (string)b);