June 2008
Monthly Archive
Monthly Archive
There is a lot of information on the concurrent primitives and concepts exposed by the .NET Framework 3.5 available on MSDN, blogs, and other websites. The goal of this post is to distill the information into an easy-to-digest high-level summary: what are the different pieces, where they differ and how they relate. If you want to know the difference between a Thread and a BackgroundWorker, or what is the point of interlocked operations, you are reading the right article.
8 comments Monday 16 Jun 2008 | Igor Ostrovsky | Uncategorized
I realized that there is a very clean way to express a multi-clause if statement by composing ternary conditional operators like this:
var result =
condition1 ? result1
: condition2 ? result2
: condition3 ? result4
…
: conditionN ? resultN
: default;
13 comments Monday 02 Jun 2008 | Igor Ostrovsky | Uncategorized