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
56 packages returned for discriminated unions
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,724,899 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.
OneOf.
SourceGenerator
by:
mcintyre321
747,454 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
547,793 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,876 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.
OneOf.
Extended
by:
mcintyre321
.NET 5.0
.NET Core 1.0
.NET Standard 1.3
.NET Framework 3.5
382,079 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
DiscriminatedUnions
by:
patrickkk
23,838 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.
OneOf.
FSharp
by:
mcintyre321
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
252,143 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
Functional.
Unions
by:
DiegoMustache
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
162,315 total downloads
last updated
11/13/2022
Latest version:
2.15.0
functional
This package contains discriminated union types for arbitrary unions of 2 to 8 types and associated factory methods.
Sundew.
DiscriminatedUnions
by:
hugener
.NET 5.0
.NET Core 1.0
.NET Standard 1.0
.NET Framework 4.5
14,620 total downloads
last updated
4/10/2024
Latest version:
5.3.4
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
ExhaustiveMatching.
Analyzer
by:
WalkerCodeRanger
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
328,939 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
SuccincT
by:
DavidArno
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
131,116 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
Dunet
by:
domn1995
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
119,432 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#.
Unknown6656.
DiscriminatedUnions
by:
unknown6656
.NET 5.0
.NET Core 3.0
.NET Standard 2.1
2,064 total downloads
last updated
3/15/2022
Latest version:
1.1.1
unknown6656
discriminated
unions
Package Description
Funcky.
DiscriminatedUnion
by:
polyadic
8,296 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. ✨
DiscriminatedOnions
by:
salvois
.NET 6.0
7,837 total downloads
last updated
1/28/2024
Latest version:
1.3.1
A stinky but tasty hack to emulate F#-like discriminated unions in C#
CSharpDiscriminatedUnion.
Generator
by:
Galad
3,364 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.
nemuikoneko.
DiscriminatedUnions
by:
nemuikoneko
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
299 total downloads
last updated
12/6/2022
Latest version:
1.0.0-alpha2
discriminated
tagged
union
unions
choice
type
variant
source
generator
C# source generator for creating discriminated unions.
SvSoft.
Analyzers.
ClosedTypeHierarchyDiagnosticSuppression
by:
shuebner
12,072 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
FunctionalSharp.
PatternMatching.
DiscriminatedUnions
by:
patrickkk
.NET 5.0
.NET Core 2.0
.NET Standard 2.0
.NET Framework 4.6.1
2,175 total downloads
last updated
2/4/2018
Latest version:
0.9.106
pattern
patternmatch
match
functional
Provides additional types and methods allowing patternamtching to return discriminatedunions. You can now return different types with patternamtching;and return a discriminated union of these types.
DiscU
by:
jamesbascle
.NET 5.0
.NET Core 1.0
.NET Standard 1.3
.NET Framework 4.6
19,695 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
Previous
Next