Skip To Content
Toggle navigation
Packages
Upload
Statistics
Documentation
Downloads
Blog
Sign in
Advanced search filters
Frameworks
Include compatible frameworks
Framework Filter Mode
ALL
ANY
.NET
net8.0
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
98 packages returned for discriminated union
Sort by
Relevance
Downloads
Recently updated
OneOf
by:
mcintyre321
.NET 5.0
.NET Core 1.0
.NET Standard 1.3
.NET Framework 3.5
18,875,848 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.
CSharpDiscriminatedUnion.
Attributes
by:
Galad
.NET 5.0
.NET Core 1.0
.NET Standard 1.0
.NET Framework 4.5
18,189 total downloads
last updated
4/14/2020
Latest version:
2.0.1
Discriminated
union
tagged
union
sum
type
algebraic
data
type
functional
More tags
Contains the attributes for the nuget package CSharpDiscriminatedUnion
discriminated
by:
AndreiStreltsov
.NET Framework 3.5
8,110 total downloads
last updated
3/1/2017
Latest version:
0.3.2
discriminated
union
functional
data-structure
c#
pattern-matching
An implementation of a discriminated union data structure with pattern matching support.
ExhaustiveMatching.
Analyzer
by:
WalkerCodeRanger
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
330,296 total downloads
last updated
5/26/2020
Latest version:
0.5.0
analyzers
switch
exhaustive
match
discriminated
union
sum-type
ExhaustiveMatching.Analyzer adds exhaustive matching to C# switch statements and expressions. Get compiler errors for missing cases in a switch statement or expression. Mark which switches should have...
More information
OneOf.
SourceGenerator
by:
mcintyre321
757,767 total downloads
last updated
9/7/2023
Latest version:
3.0.263
discriminated
unions
return
type
match
switch
generator
source
generator
This source generator automaticly implements OneOfBase hierarchies
Microsoft.
FSharpLu.
Json
by:
FSharpLu
Microsoft
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
549,476 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.
FunctionalSharp.
DiscriminatedUnions
by:
patrickkk
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
28,924 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.
DiscriminatedUnion
by:
sdedalus
.NET Framework 4.5
4,987 total downloads
last updated
8/4/2017
Latest version:
1.0.0.45
Discriminated
Union
Implementation of Discriminated Union and Pattern Matching in C#. string outputValue = x.Match<String>() .Case(c => c == "Test", v => "It's Test!") .Case(v => "It's Not Test!") .Else(()...
More information
Funcky.
DiscriminatedUnion
by:
polyadic
8,362 total downloads
last updated
11/22/2022
Latest version:
1.1.0
Funcky
Discriminated
Tagged
Union
Algebraic
A source generator that generates `Match` methods for all your discriminated unions needs. ✨
CSharpDiscriminatedUnion
by:
Galad
11,736 total downloads
last updated
4/14/2020
Latest version:
2.0.1
Discriminated
union
tagged
sum
type
algebraic
data
functional
F#
Package Description
OneOf.
Extended
by:
mcintyre321
.NET 5.0
.NET Core 1.0
.NET Standard 1.3
.NET Framework 3.5
386,261 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
Dunet
by:
domn1995
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
121,760 total downloads
last updated
1/29/2024
Latest version:
1.11.2
source
generator
discriminated
union
functional
tagged
A simple source generator for discriminated unions in C#.
DiscriminatedUnions
by:
patrickkk
23,891 total downloads
last updated
8/8/2014
Latest version:
0.7.2
This package provides Discriminated Unions for C#. This is the old backage. The new package is FunctionalSharp.DiscriminatedUnions.
Hexarc.
Serialization.
Union
by:
shadeglare
.NET 7.0
20,802 total downloads
last updated
4/23/2023
Latest version:
3.0.1
Tagged
Union
Discriminated
Union
Serialization
Json
This package helps to serialize .NET/C# classes hierarchy as a tagged union (also known as a discriminated union).
OneOf.
FSharp
by:
mcintyre321
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
252,402 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
ImTools
by:
dadhi
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.5
439,463 total downloads
last updated
7/25/2022
Latest version:
4.0.0
FP
Performance
Simple
Functional
Immutable
Persistent
Map
Avl
2-3Tree
Self
More tags
Immutable persistent collections, algebraic sum-type aka descriminated union, Ref type and supportive extensions for performant functional programming in C#. Split from the DryIoc:...
More information
CSharpDiscriminatedUnion.
Generator
by:
Galad
3,432 total downloads
last updated
4/14/2020
Latest version:
2.0.1
Discriminated
union
tagged
union
sum
type
algebraic
data
type
functional
More tags
Creates discriminated unions in C#. Define a template for a discriminated union and the appropriate code will be generated.
Sundew.
DiscriminatedUnions
by:
hugener
.NET 5.0
.NET Core 1.0
.NET Standard 1.0
.NET Framework 4.5
14,719 total downloads
last updated
4/22/2024
Latest version:
5.3.5
Sundew.DiscriminatedUnions
analyzers
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...
More information
ErrorOr
by:
amantinband
Mantinband
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
1,089,610 total downloads
last updated
3/26/2024
Latest version:
2.0.1
Result
Results
ErrorOr
Error
Handling
A simple, fluent discriminated union of an error or a result.
DiscriminatedUnionJsonConverter
by:
sdedalus
.NET Framework 4.5
2,767 total downloads
last updated
8/4/2017
Latest version:
1.0.0.45
Tag1
Tag2
DiscriminatedUnion Json Converter
Previous
Next