Generic tagged union helper class for type-safe discrimination.
This utility class provides a way to create discriminated unions with compile-time type safety, commonly used in functional programming patterns.
The discriminant tag type
The associated data type
Create a new tagged value with the specified tag and data.
The discriminant tag
The associated data payload
Readonly
The discriminant tag for this tagged value
Generic tagged union helper class for type-safe discrimination.
This utility class provides a way to create discriminated unions with compile-time type safety, commonly used in functional programming patterns.