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
- Throw expressions in C# 7.0
- Using-declarations in C# 8.0
- Expression bodied members in C# 7.0
- More expression-bodied members in C#
- Internals of tuple literals
- Default literal expressions in C# 7.1
- C# and Partial Classes
- Non-trailing named arguments in C# 7.2
- Writing IL code on Visual Studio
- IL perversions: throwing and catching strings
- var keyword in C#
- Pattern matching in switch statements
- Adding attribute to backing field of automated property
- Are lock and Monitor the same in C#?
- Deep dive to async Main
- Anonymous types in C#
- Out variables in C# 7.0
- All about IDisposable
- Code Contracts: How they look after compiling?
- 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)