[C#] Compare generic variables for equality

This is a simple task, yet one which is frequently carried out incorrectly. This kind of comparison is often required when dealing with classes that look like the following.

[C#] How does the garbage collector work?

What is garbage?

[C#] Static type constructors and beforefieldinit

If you’re a professional programmer (and chances are that you are), I’ll bet that at one time or another you’ve gotten into some form of quarrel over which of the following is “better”.

How to view JITted code in Visual Studio

We spend a lot of time in these posts looking at the CIL that is generated by the C# compiler. But did you know that you can actually go a level deeper and view the assembly code generated by the JITter?