Understanding the cost of C# delegates

Delegates are widely used in C# (and .NET, in general), but it's not always obvious to the developer what code they write ends up generating. In this post, I'll show the various forms to make you aware of their costs.