MethodInvoker vs Action for Control.BeginInvoke

Both are equally correct, but the documentation for Control.Invoke states that:

The delegate can be an instance of
EventHandler, in which case the sender
parameter will contain this control,
and the event parameter will contain
EventArgs.Empty. The delegate can also
be an instance of MethodInvoker, or
any other delegate that takes a void
parameter list. A call to an
EventHandler or MethodInvoker delegate
will be faster than a call to another
type of delegate.

So MethodInvoker would be a more efficient choice.

Leave a Comment