OneOf
OneOf copied to clipboard
Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching
When trying to use the `OneOf` generic types they are ambiguous with the `OneOf` namespace which leads to the need for fully specifying the type as `OneOf.OneOf`. This isn't easily...
Same goes for `OneOf and `OneOf` If I create an instance of `T1` and put it in a `OneOf a` and put then same instance in a `OneOf b` then...
I've seen too many times developers using `.Switch` instead of `.Match` when calling async void code inside the lambdas, because the default behaviour when you want to perform a void...
Reverts mcintyre321/OneOf#61
Add support for .net6.0 (at least) and (optional) netstandard2.1
In order that functions that return OneOf can call other functions that return OneOf, the `.WithType()` method allows you to return existing OneOf structs but with added types. **Note:** Unfortunately...
I'm really enjoying the concept of discriminated unions, but I'm thinking perhaps my understanding of OneOf's implementation is somewhat lacking. In my codebase, I have implemented OneOf in several packages...
We've noticed that your package on NuGet.org is missing a README file. ## Why READMEs are Important Our customer research indicates that one of the top problems that package consumers...
Hi, I recently used OneOf to make some code quality improvements and encoutered an issue when serializing data. I have an endpoint (.NET 6 API) in which I can return...
Hello Team, I'm just using the library and I feel fascinated. However, I would like to propose the following and check if it is possible. I just built the code...