Option 3.0.1

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

Install-Package Option -Version 3.0.1
dotnet add package Option --version 3.0.1
paket add Option --version 3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

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

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
3.0.1 (current version) 33,976 3/13/2015
3.0.0 858 3/24/2014
2.0.2 274 10/3/2013
2.0.0 192 9/29/2013