2.0.1
Metadata
Authors | Tom Jacques |
---|---|
Copyrights | Copyright 2013 |
Description | Binaries for the Option type. Visit https://github.com/tejacques/Option for an overview and usage examples. |
LicenseUrl | https://github.com/tejacques/Option/blob/master/LICENSE |
Owners | Tom Jacques |
ProjectUrl | https://github.com/tejacques/Option/ |
ReleaseNotes | Version Release Notes: Version 2.0.1: - Allow Some<T> to have its value updated. - OptionPatternMatcher's default value Option value is now Option.None. - Fix edge case inequality operator. Version 2.0.0: - Added functional pattern matching as a fluent API to Options in the form: var matcher = Option<T>.PatternMatch() .None(() => { /* Action when the Option is None */ }) .Some(value, () => { /* Action when the Option is value */ }) .Some((value) => { /* Action when the Option is Some<T> */ }); matcher.Result(Option<T> option); /* Will run the appropriately matched action on the option */ These are also present as instance functions on Option<T>: Option<int> option = getOptionFromMethodCall(); var result = option.Match<string>() .None(() => "None") .Some(0, () => "Zero") .Some((value) => value.ToString()) .Result(); - Pattern matching matches one and only one pattern. - Tests have 100% code coverage. - New Some<T> and None<T> classes. - Breaking Changes: - From() method replaced with Some(). - ToOption() extension method has been removed. Version 1.0.1: - Include documentation. Version 1.0.0: - Adds the Option type to the System.Option namespace. |
RequireLicenseAcceptance | False |
Summary | An open source Option type for C#. |
Tags | Option Some None Maybe |
Title | Option |
PackageSize | 17205 |
PackageHashAlgorithm | SHA512 |
PackageHash | GQSmzLr998gpYVyhq4ezMyLIDIwtCE/Ylx+f70EYpiLdtrPCLkFhp/Wggv/6zHu8VRAEXCIaa4OjChsInroNNg== |
DownloadCount | 000000 |
CreatedDate | 2013-10-03T04:16:26 |
Access
You can access data for this version using the tools and addresses described below.
NuGet (nuget.exe)
- Installing the package (HTTP Basic authentication):
-
nuget install Option -Version 2.0.1 -Source http://nuget.gw.symbolsource.org/Public/NuGet/FeedService.mvc
- Installing the package (pre-authenticated):
-
nuget install Option -Version 2.0.1 -Source http://nuget.gw.symbolsource.org/Public/%login%/%key%/NuGet/FeedService.mvc
- Deleting the package from the server (for each registered key):
-
nuget delete Option 2.0.1 %key% -Source http://nuget.gw.symbolsource.org/Public/NuGet
NuGet (Package Manager Console)
- Installing the package (HTTP Basic authentication):
-
Install-Package Option -Version 2.0.1 -Source http://nuget.gw.symbolsource.org/Public/NuGet/FeedService.mvc
- Installing the package (pre-authenticated):
-
Install-Package Option -Version 2.0.1 -Source http://nuget.gw.symbolsource.org/Public/%login%/%key%/NuGet/FeedService.mvc
OpenWrap
- Installing the package:
-
o add-wrap Option -Version 2.0.1
- Uninstalling the package:
-
o remove-wrap Option
Compilations
A compilation is created for every set of binaries produced from a single unchanged set of sources in different compilation modes (Debug, Release), for different platforms (x86, x64) or targetting different frameworks.
Profile | Mode | Platform | Related |
---|---|---|---|
AnyCPU | Release | .NETFramework,Version=v3.5 | Binaries |