Recent Posts

The Bonus Round: Publishing Tiles & Tokens with Native AOT

We thought the series was over, but the demo had one more question for us: can a C# 15 app built on unions, closed hierarchies, and union-aware System.Text.Json compile to a native binary? We publish Tiles & Tokens with Native AOT and find out which parts of the series pass, which don't, and why.

Read more →

Saving the Game: System.Text.Json and Union State

Pause the game, close the app, and resume tomorrow. System.Text.Json in .NET 11 knows about unions - but how much of a C# 15 game state can it save and load out of the box? We find out what works natively, what needs an attribute, and what still needs a workaround on RC1.

Read more →

Closed Hierarchies in C# 15: Every Victory Condition Accounted For

Unions are great when the cases are unrelated. When they share behavior, C# 15's closed hierarchies give you a class hierarchy the compiler knows is complete. We model Tiles & Tokens victory conditions and placement rules, find the assembly boundary, and build a checklist for choosing between unions and closed types.

Read more →