Monitor a Process Asynchronously – More DelegateMarshaler Tricks

Saturday, August 9th, 2008 Posted in Programming | 8 Comments »

In my last post, I wrote about a nifty DelegateMarshaler class that I'd run across on Kevin's blog.  Figuring out how to update the UI from another thread has always ... Read more..

Control.InvokeRequired, DelegateMarshaler and Anonymous Methods

Friday, July 18th, 2008 Posted in Programming | 6 Comments »

A couple weeks ago I ran across an awesome post about replacing all of those tests for Control.InvokeRequired with a more programmer-friendly approach. Kevin was kind enough to provide ... Read more..

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..

Run Anonymous Methods in Another AppDomain, Part 2

Sunday, June 22nd, 2008 Posted in Programming | 4 Comments »

In my last post, I discussed a method that could be used to run an anonymous method in another AppDomain.  This approach works great if you have an ... Read more..

Run Anonymous Methods in Another AppDomain

Saturday, June 21st, 2008 Posted in Programming | 1 Comment »

I've been working on a small project where I was creating a plugin-based system and needed to execute a small snippet of code in another AppDomain.  Normally there is a ... Read more..

FizzBuzz the Functional Way

Saturday, June 14th, 2008 Posted in Programming | 2 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 | 12 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 | 19 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..