LINQ is just freaking cool

A couple of weeks ago, Jason Whittington (a fellow instructor at Developmentor) and I were doing a talk on asynchronous programming and we started with a very simple example of the APM -- using two loops to create and then consume the IAsyncResult work: static void TwoLoopMain(string[] args){   Queue<IAsyncResult> ars = new Queue<IAsyncResult>();   Func<int,int,int> mathProc = Multiply;    for (int i = 1; i <= 20; … [Read more...]