OneOf - Easy Discriminated Unions for c# NuGet Package

F# style discriminated unions for 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.




Got any OneOf - Easy Discriminated Unions for c# Question?





Info

Version: 3.0.271
Author(s): Harry McIntyre
Last Update: Thursday, May 16, 2024
.NET Fiddle: Online Example
Project Url: https://github.com/mcintyre321/OneOf/
NuGet Url: https://www.nuget.org/packages/OneOf


Install
Install-Package OneOf
dotnet add package OneOf
paket add OneOf
OneOf Download (Unzip the "nupkg" after downloading)

.NETFramework 3.5
  • No dependencies.
.NETFramework 4.5
  • No dependencies.
.NETStandard 1.3 37 packages depend on this package.


Tags



STATS

must-have-score

6

avg-downloads-per-day

5994

days-since-last-release

219