.NET Inside Out Part 20 – Try doing nothing but decreasing performance

This is the twentieth part of the .NET Inside Out series. For your convenience you can find other parts in the table of contents in Part 1 – Virtual and non-virtual calls in C# Let’s take this code and see its performance with BenchmarkDotNet: Results on Windows 7 and .NET Core 4.6 (I know I … Continue reading .NET Inside Out Part 20 – Try doing nothing but decreasing performance

.NET Inside Out Part 19 – Creating structure instance without calling a constructor

This is the nineteenth part of the .NET Inside Out series. For your convenience you can find other parts in the table of contents in Part 1 – Virtual and non-virtual calls in C# Today we will see that .NET can create an instance of a structure without calling its constructor if it is not … Continue reading .NET Inside Out Part 19 – Creating structure instance without calling a constructor

.NET Inside Out Part 18 — Handling StackOverflowException with custom CLR host

This is the eighteenth part of the .NET Inside Out series. For your convenience you can find other parts in the table of contents in Part 1 – Virtual and non-virtual calls in C# We saw in Part 8 — Handling Stack Overflow Exception in C# with VEH how to handle SOE in C#. Obviously, … Continue reading .NET Inside Out Part 18 — Handling StackOverflowException with custom CLR host

.NET Inside Out Part 17 — Abusing types to serialize non-serializable type

This is the seventeenth part of the .NET Inside Out series. For your convenience you can find other parts in the table of contents in Part 1 – Virtual and non-virtual calls in C# Last time we saw how to abuse type system. Today we are going to do this to serialize non-serializable type (kind … Continue reading .NET Inside Out Part 17 — Abusing types to serialize non-serializable type