DEV Community

Gunnar Peipman
Gunnar Peipman

Posted on • Originally published at gunnarpeipman.com on

Behind the compiler: 20 examples of C# code before and after compiling

Over years I have written many blog posts about C# and .NET that demonstrate also how things work internally and what C# compiler produces from the code we write. I have called these chapters usually as “Behind the compiler”.

Behind the compiler posts

  1. Throw expressions in C# 7.0
  2. Using-declarations in C# 8.0
  3. Expression bodied members in C# 7.0
  4. More expression-bodied members in C#
  5. Internals of tuple literals
  6. Default literal expressions in C# 7.1
  7. C# and Partial Classes
  8. Non-trailing named arguments in C# 7.2
  9. Writing IL code on Visual Studio
  10. IL perversions: throwing and catching strings
  11. var keyword in C#
  12. Pattern matching in switch statements
  13. Adding attribute to backing field of automated property
  14. Are lock and Monitor the same in C#?
  15. Deep dive to async Main
  16. Anonymous types in C#
  17. Out variables in C# 7.0
  18. All about IDisposable
  19. Code Contracts: How they look after compiling?
  20. Automatic properties in C#

The post Behind the compiler: 20 examples of C# code before and after compiling appeared first on Gunnar Peipman - Programming Blog.

Top comments (0)