Coding AgentsStructUnion: the C# source generator that turns memory layout into a discriminated union
A Roslyn generator for zero-allocation unions, explicit-layout tricks, safe fallbacks, and an ASCII byte map right in your IDE.
9 min read ยท Apr 6, 2026