returned for Tags:"discriminated-union"
Portable library for easy to use F#-like Discriminated Unions in C#. Implicitly casts objects into OneOf instances, then use .Match extension to do pattern matching. Designed as a partial drop in replacement for OneOf.
Creates discriminated unions in C#. Define a template for a discriminated union and the appropriate code will be generated.
An implementation of a discriminated union data structure with pattern matching support.
Contains the attributes for the nuget package CSharpDiscriminatedUnion
Implementation of Discriminated Union and Pattern Matching in C#.
string outputValue = x.Match<String>()
.Case(c => c == "Test", v => "It's Test!")
.Case(v => "It's Not Test!")
.Else(() => "It's None!")
var x = new Union<string, int>(100);
// the type annotations below are...
Some discriminated unions for C♯ 8.
CodeJam is a set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another.