2007-02-20 Rolf Bjarne Kvinge <RKvinge@novell.com>
authorRolf Bjarne Kvinge <RKvinge@novell.com>
Tue, 20 Feb 2007 15:11:02 +0000 (15:11 -0000)
committerRolf Bjarne Kvinge <RKvinge@novell.com>
Tue, 20 Feb 2007 15:11:02 +0000 (15:11 -0000)
* Control.cs: Fix BeginInvoke signature for 2.0 profile.
Seems like the class status pages doesn't catch params differences.

svn path=/trunk/mcs/; revision=73173

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs

index f0a643437b6cfffc95df41b02b11b4538c4fc81d..d1e6735e5b84b98e087e728d65cbe01f68aef7c7 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * Control.cs: Fix BeginInvoke signature for 2.0 profile.
+       Seems like the class status pages doesn't catch params differences.
+
 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
 
        * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
index db7f32c8c8ceb999c3292158aef66482d0523970..e5569a31f9ede29a604c48ef455f8f7940dcdc8e 100644 (file)
@@ -3141,7 +3141,12 @@ namespace System.Windows.Forms
                }
 
                [EditorBrowsable(EditorBrowsableState.Advanced)]
-               public IAsyncResult BeginInvoke (Delegate method, object[] args) {
+#if NET_2_0
+               public IAsyncResult BeginInvoke (Delegate method, params object[] args)
+#else
+               public IAsyncResult BeginInvoke (Delegate method, object[] args)
+#endif
+               {
                        return BeginInvokeInternal (method, args, false);
                }