Skip To Content
Toggle navigation
Packages
Upload
Statistics
Documentation
Downloads
Blog
Sign in
Frameworks
.NET
net7.0
net6.0
net5.0
.NET Core
netcoreapp3.1
netcoreapp3.0
netcoreapp2.2
netcoreapp2.1
netcoreapp2.0
netcoreapp1.1
netcoreapp1.0
.NET Standard
netstandard2.1
netstandard2.0
netstandard1.6
netstandard1.5
netstandard1.4
netstandard1.3
netstandard1.2
netstandard1.1
netstandard1.0
.NET Framework
net481
net48
net472
net471
net47
net462
net461
net46
net452
net451
net45
net40
net35
net30
net20
Package type
All types
Dependency
.NET tool
Template
Options
Include prerelease
24 packages returned for Tags:"unions"
Sort by
Relevance
Downloads
Recently updated
OneOf
by:
mcintyre321
12,673,908 total downloads
last updated
9/7/2023
Latest version:
3.0.263
discriminated
unions
return
type
match
switch
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.
Microsoft.
FSharpLu.
Json
by:
FSharpLu
Microsoft
464,116 total downloads
last updated
6/24/2021
Latest version:
0.11.7
F#
FSharp
Utilities
Json
discriminated
unions
Json serialization converters for F# option types and discriminated unions.
OneOf.
SourceGenerator
by:
mcintyre321
367,004 total downloads
last updated
9/7/2023
Latest version:
3.0.263
discriminated
unions
return
type
match
switch
generator
source
This source generator automaticly implements OneOfBase hierarchies
OneOf.
Extended
by:
mcintyre321
259,675 total downloads
last updated
9/7/2023
Latest version:
3.0.263
discriminated
unions
return
type
match
switch
This package extends the OneOf types from OneOf<T0, .., T9> to OneOf<T0, .., T32> for when you really have a lot of options
OneOf.
FSharp
by:
mcintyre321
241,974 total downloads
last updated
9/7/2023
Latest version:
3.0.263
discriminated
unions
return
type
match
switch
This is an FSharp library for interop with the C# OneOf Types
SuccincT
by:
DavidArno
115,359 total downloads
last updated
2/17/2020
Latest version:
4.0.0
Partial
application
Discriminated
unions
Options
Maybe
Pattern
matching
cons
functional
Succinc<T> is a .NET library that adds a number of functional features to C#: * Discriminated unions, * Pattern matching, * Partial applications, * "Implicitly" typed lambdas, * The ability to treat void...
More information
LanguageExt.
CodeGen
by:
louthy
240,788 total downloads
last updated
9/21/2023
Latest version:
4.4.5
C#
Functional
Language
Extension
Lenses
Records
Unions
Monad
Option
Either
More tags
Design and build-time code-gen for records, unions, lenses and immutable With functions
FunctionalSharp.
DiscriminatedUnions
by:
patrickkk
26,573 total downloads
last updated
2/4/2018
Latest version:
0.9.106
Unions
Discriminated
Discriminated
Linq
lambda
Functional
This package provides Discriminated Unions for C#. This is the old backage. The new package is FunctionalSharp.DiscriminatedUnions.
DiscU
by:
jamesbascle
19,124 total downloads
last updated
2/16/2018
Latest version:
1.0.0.9
Discriminated
Union
Unions
Pattern
Matching
OneOf
Tagged
Sum
Type
Types
Portable library for easy to use F#-like Discriminated Unions in C#. Implicitly casts objects into OneOf instances, then use .Match extension to do pattern matching. Designed as a partial drop in replacement...
More information
Unknown6656.
IndexableProperties
by:
unknown6656
3,856 total downloads
last updated
3/13/2022
Latest version:
1.1.0
unknown6656
discriminated
unions
Package Description
SvSoft.
Analyzers.
ClosedTypeHierarchyDiagnosticSuppression
by:
shuebner
2,238 total downloads
last updated
1/31/2023
Latest version:
1.1.1
discriminated
unions
match
switch
Suppresses exhaustiveness warnings of switch statement and switch expressions when all cases of a "closed type hierarchy" are covered. See project URL for details. It suppresses IDE0010, IDE0072 and CS8509. It...
More information
Unknown6656.
DiscriminatedUnions
by:
unknown6656
1,719 total downloads
last updated
3/15/2022
Latest version:
1.1.1
unknown6656
discriminated
unions
Package Description
T4DU
by:
nugusev
5,226 total downloads
last updated
11/12/2017
Latest version:
1.0.0-beta
t4
discriminated
unions
sum
type
algebraic
data
types
tagged
T4DU is a T4 template that generates discriminated cases for your C# projects.
OneOf.
Signed
by:
fsharpfan
3,272 total downloads
last updated
1/25/2019
Latest version:
1.0.0
discriminated
unions
return
type
match
switch
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.
GenericDataStructures
by:
PhilipAlexanderWallin
2,430 total downloads
last updated
5/22/2020
Latest version:
1.1.0
discriminated
unions
result
types
generic
return
data
Generic discriminating union types to be used as results when you want to make sure every return type is handled explicitly.
SvSoft.
OneOf.
Analyzers.
SwitchDiagnosticSuppression
by:
shuebner
1,171 total downloads
last updated
1/11/2023
Latest version:
1.1.0
discriminated
unions
match
switch
oneof
Suppresses exhaustiveness warnings of switch statement and switch expressions on OneOf<...>.Value from the OneOf library when all type arguments are covered. See project URL for details. It suppresses IDE0010,...
More information
BMTLab.
StateResults
by:
BMTLab
671 total downloads
last updated
8/16/2023
Latest version:
2.2.816
unions
types
results
oneof
states
Contains union-types representing either a successful result or a union-list of possible errors
BMTLab.
OneOf.
Reduced
by:
BMTLab
489 total downloads
last updated
8/16/2023
Latest version:
2.2.816
unions
types
results
oneof
states
Discriminated unions for C#, based on the well-known OneOf package, with modified functionality and other improvements
GraphQL.
AutoUnions
by:
dan.patiu
254 total downloads
last updated
3/20/2023
Latest version:
1.0.0-beta.2
GraphQL
Unions
json
api
A library that provides a way to handle unions discriminated unions in `AddAutoSchema` cases for GraphQL.Net
OneOf.
NET45
by:
ndrwrbgs
738 total downloads
last updated
8/22/2018
Latest version:
2.1.125
discriminated
unions
return
type
match
switch
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.
Previous
Next