The 3 ways to create a Thread-Safe GUI with .NET 2.0, with one clear winner.
Posted by: ISerializable,
on 01 Mar 2006 |
View original | Bookmarked: 0 time(s)
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? Here's a little scenario for you. Assume there is a method that displays a string on the GUI, but may be called by a different thread than the GUI. The method has only a single string parameter. here...