Provides an easy way to implement Smart Enums, Value Objects and Discriminated Unions in .NET
-
Updated
Oct 19, 2026 - C#
Provides an easy way to implement Smart Enums, Value Objects and Discriminated Unions in .NET
A simple and flexible alternative to System.Enum based on strings.
Smart Enums are a pattern where you replace primitive enums with classes that act like enums but carry their own behavior.
My collection of samples on leveraging Blazor Server
To associate your repository with the smart-enums topic, visit your repo's landing page and select "manage topics."