Skip to main content
Sundew.DiscriminatedUnions package icon

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.

Total Downloads
89.2K
89,158
Published
Nov 17, 2025
Latest stable version

Install

.NET CLI
dotnet add package Sundew.DiscriminatedUnions --version 5.3.10+b631b6c67e
Package Manager Console
Install-Package Sundew.DiscriminatedUnions -Version 5.3.10+b631b6c67e
PackageReference
<PackageReference Include="Sundew.DiscriminatedUnions" Version="5.3.10+b631b6c67e" />

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.

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.