Option 3.0.0
See the version list below for details.
dotnet add package Option --version 3.0.0
NuGet\Install-Package Option -Version 3.0.0
<PackageReference Include="Option" Version="3.0.0" />
paket add Option --version 3.0.0
#r "nuget: Option, 3.0.0"
// Install Option as a Cake Addin #addin nuget:?package=Option&version=3.0.0 // Install Option as a Cake Tool #tool nuget:?package=Option&version=3.0.0
Binaries for the Option type.
Visit https://github.com/tejacques/Option for an overview and usage examples.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Option:
Package | Downloads |
---|---|
LOGQ
Logical programming tool with Prolog-styled features and object to fact mapping. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Option:
Repository | Stars |
---|---|
tejacques/AsyncBridge
A library to help bridge C# async method execution from synchronous methods, such as in Windows Forms and ASP.NET.
|
Version Release Notes:
Version 3.0.0:
- Breaking Changes:
- Option is now a struct (value type).
- Option now no longer has subclasses None and Some (since it is a struct)
- Namespace changed from System.Option to Functional.Option
- Implicit Conversion from Option<T> to <T> has been removed.
- Option now implements IEnumerable<T>
- ToOption() extension method added for regular and Nullable types.
- Pattern matching is now a function call in the form:
option.Match(
None: () => { /* Action when the Option is None */ },
Some: value => { /* Action when the Option is Some<T> */ });
var result = option.Match(
None: () => "None",
Some: value => value.ToString());