An option type for .Net
Switch branches/tags
Nothing to show
Clone or download
Strilanc Merge pull request #3 from bradleygibson/build-contract-reference-ass…

Build contract reference assembly
Latest commit 205d8ff Jun 30, 2016


Implements an option type (Strilanc.Value.May<T>) that encourages usage based on pattern matching rather than ForceGetValue. Also includes utility methods for producing, consuming and transforming May<T>.

Note on null: May<T> treats null like any other value. May.NoValue is distinct from null, and both are distinct from ((object)null).Maybe().

Blog post with usage examples:

NuGet package: