Option 3.0.1

.NET Framework 3.5
NuGet\Install-Package Option -Version 3.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package Option --version 3.0.1
<PackageReference Include="Option" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Option --version 3.0.1
#r "nuget: Option, 3.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Option as a Cake Addin
#addin nuget:?package=Option&version=3.0.1

// Install Option as a Cake Tool
#tool nuget:?package=Option&version=3.0.1

Binaries for the Option type.
       Visit https://github.com/tejacques/Option for an overview and usage examples.

Product Versions
.NET Framework net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

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 Downloads Last updated
3.0.1 1,445,221 3/13/2015
3.0.0 2,108 3/24/2014
2.0.2 1,175 10/3/2013
2.0.0 1,047 9/29/2013

Version Release Notes:

       Version 3.0.1:
        - Fix target to .NET 3.5

       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());