📄️ Core Package Overview
The UnionGenerator core package provides everything you need to define and use discriminated unions in C#. It leverages Roslyn source generators to create type-safe union types with zero runtime overhead.
📄️ Union Generation
Learn how to use the [GenerateUnion] attribute and customize union generation to fit your needs.
📄️ Pattern Matching
UnionGenerator provides multiple ways to match and extract values from union types. Each method offers different trade-offs between safety, ergonomics, and performance.
📄️ Best Practices
Production-ready patterns and guidelines for using UnionGenerator effectively in real-world applications.