Something that trips me up occasionally in C# is syntactic sugar with properties. Specifically, the difference between the fat arrow (
=>) and assignment (
=) with properties. Here’s a quick note to help clear up any confusion.
There are a lot of different thread lock mechanisms that .Net provides. Some are better than others. Some you really shouldn’t use at all. This post will walk you through some of the most common scenarios and provide suggested mechanisms for dealing with them.