In Linq To Objects, there are two ways you can join two sequences together, using either Concat() or Union(), and as I was wondering how the two differs I came across this post:
When dealing with concurrency/threading issues in .Net, the normal approach is to use lock() to lock a dedicated sync object like this:
[code lang=”csharp”]private static readonly object padlock = new object();…lock(padlock){ //…