UnionTypes.Toolkit
2.0.1
dotnet add package UnionTypes.Toolkit --version 2.0.1
NuGet\Install-Package UnionTypes.Toolkit -Version 2.0.1
<PackageReference Include="UnionTypes.Toolkit" Version="2.0.1" />
<PackageVersion Include="UnionTypes.Toolkit" Version="2.0.1" />
<PackageReference Include="UnionTypes.Toolkit" />
paket add UnionTypes.Toolkit --version 2.0.1
#r "nuget: UnionTypes.Toolkit, 2.0.1"
#:package UnionTypes.Toolkit@2.0.1
#addin nuget:?package=UnionTypes.Toolkit&version=2.0.1
#tool nuget:?package=UnionTypes.Toolkit&version=2.0.1
UnionTypes.Toolkit
A collection of common union types compatible with the C# Union Types feature.
Option
The Option<TValue> union type allows you to represent either Some<TValue> or None.
Result
The Result<TValue, TError> union type allows you to represent either Success<TValue> or Failure<TError>.
Union
A family of generic union types Union<T1, T2>, Union<T1, T2, T3>, etc.
You can use these without declaring a unique named union type.
The held value will be boxed, however.
FatUnion
A family of generic union types FatUnion<T1, T2>, FatUnion<T1, T2, T3>, etc.
You can use these without declaring a unique named union type.
The held value will not be boxed, but the type has space for all cases, similar to a tuple.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.