Blogs

BROWSE: Most Recent | Popular Tags |

Tags > threading

Understanding C#: Raising events using a temporary variable

By Andrew Stellman
September 10, 2010

A lot of C# developers notice that there's something odd about how we normally raise events in C#. We're always told to set a temporary variable equal to the event first, and then raise the event using that variable. It looks very strange—how could that variable do anything at all? But it turns out that there's a very good reason for using the temporary variable, and understanding that reason can help you become a better C# developer. This post shows a quick example of why you need that variable.

Understanding C#: Using BackgroundWorker to make your UI responsive

By Andrew Stellman
June 28, 2010

Someone once told me that he could tell a form was built by a novice C# developer if it stopped responding when he pressed a button. I'm not 100% sure I agree, but I definitely think that an intermediate or advanced C# developer should be able to build a form that stays responsive even when the program is doing something CPU intensive. Luckily, C# and .NET give us a simple way to do that using the BackgroundWorker class. Not only is it a great tool to let your programs do more than one thing at once, it's a good way for novice and intermediate C# developers to get started with threading.

Ender Lib: faking threading in Flash

By RJ Owen
March 6, 2009

My fellow developer and friend John Blanco got bored over the weekend and wrote a library for creating and maintaining (fake) thread processes in AS3 for the Flash player. He's calling it Ender Lib, presumably after the great Orson Scott Card series, and you can find the library on Google code and official launch on his blog.


1 to 3 of 3
The Watering Hole