UnionTypes.Toolkit
2.3.0
dotnet add package UnionTypes.Toolkit --version 2.3.0
NuGet\Install-Package UnionTypes.Toolkit -Version 2.3.0
<PackageReference Include="UnionTypes.Toolkit" Version="2.3.0" />
<PackageVersion Include="UnionTypes.Toolkit" Version="2.3.0" />
<PackageReference Include="UnionTypes.Toolkit" />
paket add UnionTypes.Toolkit --version 2.3.0
#r "nuget: UnionTypes.Toolkit, 2.3.0"
#:package UnionTypes.Toolkit@2.3.0
#addin nuget:?package=UnionTypes.Toolkit&version=2.3.0
#tool nuget:?package=UnionTypes.Toolkit&version=2.3.0
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.