30 packages returned for discriminated unions

.Net Discriminated Unions
  • 2,465 total downloads
  • last updated 8/8/2014
  • Latest version: 0.7.2
This package provides Discriminated Unions for C#. This is the old backage. The new package is FunctionalSharp.DiscriminatedUnions.
OneOf - Easy Discriminated Unions for c#
F# style discriminated unions or C#, using a custom type OneOf<T0, ... Tn> which holds a single value and has a .Match(...) method on it for exhaustive matching. Simple but powerful.
.Net Discriminated Unions
  • 186 total downloads
  • last updated 3/20/2018
  • Latest version: 1.0.3
This package provides Discriminated Unions for C# with an opportunity inherit from built in type and create custom Union Type.
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!") or var x = new Union<string, int>(100); // the type annotations... More information
  • 519 total downloads
  • last updated 7/9/2018
  • Latest version: 1.7.2
  • functional
This package contains discriminated union types for arbitrary unions of 2 to 8 types and associated factory methods.