Represents a delegate that can execute any method in managed code that is declared void and takes no parameters.
| C# | Visual Basic |
public delegate void MethodInvoker()
Public Delegate Sub MethodInvoker
MethodInvoker provides a simple delegate that is used to invoke a method with a void parameter list.
This delegate can be used when making calls to a control's Invoke(Delegate) method, or when you need a simple delegate but do not want to define one yourself.