C# discriminated-unions

Open-source C# projects categorized as discriminated-unions

Top 3 C# discriminated-union Projects

  • OneOf

    Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching

  • Project mention: The Monad Invasion - Part 1: What's a Monad? | dev.to | 2024-02-27

    OneOf

  • dunet

    C# discriminated union source generator

  • Project mention: Rolled my own Result<T,E> type that seems to work better than others. | /r/csharp | 2023-11-01

    BUT It is possible to implement it in a pretty good way. The main issue with the majority of existing libraries is that they're not able to guarantee that Error variant matching is exhaustive. Thus I'd recommend the usage of code generators libraries (https://github.com/domn1995/dunet looks like a good choice to start with) to build Result and Error(s) unions in a proper way

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • ExhaustiveMatching

    C# Analyzer Adding Exhaustive Checking of Switch Statements and Expressions

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C# discriminated-unions related posts

Index

What are some of the best open-source discriminated-union projects in C#? This list will help you:

Project Stars
1 OneOf 3,185
2 dunet 470
3 ExhaustiveMatching 68

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com