News for hackers. Stuff that matters.
Re:Why C# Is Not My Favorite Programming Language by peteri on Wednesday May 04, 2011 @05:09AM (#2513252)
The locking bit on events is wrong certainly for C#v4 (see http://blogs.msdn.com/b/cburrows/archive/2010/03/30/events-g... and the other entries in the series) for why.

Also I've nearly always done the first pattern on Chris Burrows page, although Jon Skeet recommends differently on his multi-threading event page http://www.yoda.arachsys.com/csharp/threads/lockchoice.shtml which (I think but I must ask him) is really more about avoiding the lock(this).

There are no comments on this comment yet.