Skip to main content

F# style discriminated unions or C#, using a custom type OneOf<T0, ... Tn> which holds a single value and has a .Match(...) method on it for exhaustive matching. Simple but powerful.

Total Downloads
69.7M
69,740,634
Published
Dec 10, 2020
Latest stable version

Install

.NET CLI
dotnet add package OneOf --version 3.0.163
Package Manager Console
Install-Package OneOf -Version 3.0.163
PackageReference
<PackageReference Include="OneOf" Version="3.0.163" />

Frameworks

.NETFramework3.5 .NETFramework4.5 .NETStandard1.3

Dependencies

NETStandard.Library
.NETStandard1.3
[1.6.1, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

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.