ThreadPool.QueueUserWorkItem With Multiple Arguments

Tuesday, June 24th, 2008 Posted in Programming | 4 Comments »

Awhile back I wrote a post about how to create a generic (and type-safe) version of the ThreadPool.QueueUserWorkItem method.  It really opened up a lot of possibilities since the C# ... Read more..

FizzBuzz the Functional Way

Saturday, June 14th, 2008 Posted in Programming | No Comments »

One of the most popular interview questions to weed out the good candidates from those that can't code at all is the "FizzBuzz" problem.  It's a simple programming exercise: ... Read more..

A Queued BackgroundWorker Using Generic Delegates

Monday, May 19th, 2008 Posted in Programming | 8 Comments »

EDIT: Oops, sorry for the typo in the title. I meant "generic delegates", not "anonymous delegates". :) Last week I wrote a post about using a generic wrapper around ... Read more..

Use ThreadPool.QueueUserWorkItem With Anonymous Types

Friday, May 9th, 2008 Posted in Programming | 14 Comments »

I recently had a method in a WinForms application that I wanted to run on a different thread to free up the main UI thread. In .NET 2.0, there exists ... Read more..