Sundew.DiscriminatedUnions
Sundew.DiscriminatedUnions implement discriminated unions for C#, until a future version of C# provides it out of the box. The idea is that this package can be deleted once unions are supported in C#, without requiring changes to switch expressions and statements.
Install
dotnet add package Sundew.DiscriminatedUnions --version 6.0.0-u20260202-005457-ci+ecad987f90
Install-Package Sundew.DiscriminatedUnions -Version 6.0.0-u20260202-005457-ci+ecad987f90
<PackageReference Include="Sundew.DiscriminatedUnions" Version="6.0.0-u20260202-005457-ci+ecad987f90" />
Frameworks
No framework metadata available.
Dependencies
No declared dependencies.
Adoption guide
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
This version is marked prerelease. Validate its API and upgrade path before production use.
No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.