Option.Netstandard 3.0.3

An Option type for C# (retargeted for netstandard).
     Forked from https://github.com/tejacques/Option.
     See https://github.com/bentefay/Option for documentation.

Install-Package Option.Netstandard -Version 3.0.3
dotnet add package Option.Netstandard --version 3.0.3
<PackageReference Include="Option.Netstandard" Version="3.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Option.Netstandard --version 3.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Version Release Notes:

     Version 3.0.3:
     - Fix target to netstandard1.0

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

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.3 2,986 1/22/2018