How do .NET delegates work?

added by DotNetKicks
1/25/2017 12:29:26 PM

3 Kicks, 676 Views

Delegates are a fundamental part of the .NET runtime and whilst you rarely create them directly, they are there under-the-hood every time you use a lambda in LINQ (=>) or a Func /Action to make your code more functional. But how to they actually work and what's going in the CLR when you use them?