Friday, January 13, 2012

101 C# and VB.Net Async Samples

Joe Mayo - 101 Async Samples

"Here’s a site, by Lucian Wischik, that contains 101 Async Samples:

There are examples in both C# and VB. Some examples have a selector that lets you toggle between .NET 4.0 and the new Async syntax. Each example has a run button so you can execute and see the return value. Throughout, you’ll see many different ways to use Async. I think it’s a very nice resource." [GD:Post leached in full]

What's awesome about this is that it's not a static sample set. It provides the before and after (v4 vs new async stuff) as well as code that you can actually execute/run.

Here's a snap of the site;


And an example of the Before (C# v4) and after (await)



And yeah, VB.Net samples too! (Which only makes sense coming from Lucian... :)


(Alvin Ashcraft's Morning Dew - Dew Drop – January 13, 2012 (#1,241))

No comments: