.NET 6.0 and C# 10 are just around the corner, so now is a good time to review some of the most interesting new language features! Record structs 📄 Proposal Records were introduced in C# 9 as a simple way to define data types with value equality semantics, for instance: public record Money(decimal Amount, string CurrencyCode); An annoying limitation was that records were always reference types, but in some scenarios it would have been better to use value types.
Visual Studio 2012 RC is out since last week, and even though I didn’t have much time to play with it yet, I think I like it so far. Lots of things have already been said about the design, and about the most important new features, but there are also many smaller and less remarkable improvements that make life easier for us. Since I have seen little or nothing written about those, I thought I would make a list of what I noticed so far.