DekGenius.com
[ Team LiB ] Previous Section Next Section

MethodInvokerserializable

System.Windows.Forms (system.windows.forms.dll)delegate

This (extremely useful!) delegate encapsulates a void method with no parameters. This is one of the most common utility delegates, and it saves you from repeatedly having to define your own. As an example, you might use it in conjunction with Control.Invoke() to marshal an inter-thread call back onto the UI thread. I only wish I'd found it sooner . . . .

public delegate void MethodInvoker();
    [ Team LiB ] Previous Section Next Section