DEV Community

Gunnar Peipman
Gunnar Peipman

Posted on • Originally published at gunnarpeipman.com on

1

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.

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay