.Net

C# 9 CheatSheet

C# 9 C# 9 Cheat Sheet with code example. Records Init only setters Top-level statements Pattern matching enhancements Native sized integers Function pointers Suppress emitting localsinit flag Target-typed new expressions static anonymous functions Target-typed conditional Read more…

By hadi, ago
Computer Science

Enum RFC update: "We’re going to shift Enums to be a single class with a bunch of secret properties inside to hold the different case object instances, rather than a class per case."

Here’s Larry’s full message: https://externals.io/message/112417#112469 tl;dr: the enum RFC now doesn’t include value-specific methods anymore. I personally think that’s a very good thing. I explained my thoughts here: https://externals.io/message/112417#112452 Nikita also voiced his concerns about Read more…

By hadi, ago