
In this blog post I will do a deep dive into
record struct
being introduced in the upcoming C# 10 and look at the performance implications
of this in a specific context. I will cover:Code generated for record structImportance of the generated codePerformance implications of default struct equality in C#Setup project to use preview compiler via Microsoft.Net.Compilers.Toolset nuget packageTypes and implementations covering different possibilities and common pitfallsBenchmarks showing record struct can be ...