OneOf
OneOf copied to clipboard
Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching
Since all fields of the OneOf struct are readonly, can we also mark the struct readonly using the keyword in its declaration? I was surprised to discover this has not...
Hi, this is a feature proposal. I don't know if this has been brought up before or if it is even in line with OneOf's philosophy, so feel free to...
Not much more to say 😅
It looks like the source generator doesn't work for nested classes. ### works as expected ```csharp [GenerateOneOf] public partial class Result : OneOfBase {} ``` ### does not work ```csharp...
for some reason .NET 5 was not present in last appveyor build, I've bumped tests to .net 6, @mcintyre321
Fixes #84. I went with doing an overload of `Switch` instead of a separate `SwitchAsync` because I think it will provide a better default experience. As soon as someone adds...
Updated the generator to be compliant with C# versions below 8, which do not support switch expressions. I'm not sure what (if any) performance issues there may be w/ that...
Implement deconstruct method to make it easy to retrieve values.
I noticed there was an updated package pushed after looking my solution today. I immediately though "oh, I have to keep track of these as they happen. I'll go to...
Closes #93