Code tagged with delegates

Different ways to create a thread-safe gui

With .NET 2.0 and with the new "anonymous delegates" feature in C#, doing multi threaded responsive GUIs is now easier. In fact, you get multiple choices on how to accomplish this task. But which choice is the best? and what does "best" really mean? more elegant? faster? more readable? all of the above?

private void displayError2(string message)
{
    Func del = delegate
    {
        errorDisplay.Show(message);
    };
            
    Invoke(del);
}
Language C# / Tagged with delegates