Easy Discriminated Unions for c#
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.
Install-Package OneOf.Signed -Version 1.0.0
dotnet add package OneOf.Signed --version 1.0.0
<PackageReference Include="OneOf.Signed" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OneOf.Signed --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
- No dependencies.
- NETStandard.Library (>= 1.6.1)