.NET 11 System.Text.Json understands C# 15 unions. We save and load game state to see what works natively, what needs an attribute, and what needs a workaround.
C# 15 closed hierarchies give you class hierarchies the compiler knows are complete. Learn the rules, the assembly boundary, and when to pick them over unions.
C# 15 adds native union types. Model a board game turn as a union, get exhaustive matching, replace a hand-rolled Result<T>, and avoid the default-value gotcha.
Three common ways to model a game turn in C# all let bugs through. We kick off a series on domain modeling with C# 15 and .NET 11 using a small board game.
When you need to get a collective understanding of a complex business domain, EventStorming can help facilitate the conversations needed to build that …