2 ms·
DU is available in C# via packages like OneOf and Dunet. Dunet is really good. https://github.com/mcintyre321/OneOf https://github.com/mcintyre321/OneOf http
by CharlieDigital 3y ago
DU is available in C# via packages like OneOf and Dunet.
Dunet is really good.
https://github.com/mcintyre321/OneOf https://github.com/mcintyre321/OneOf
https://github.com/domn1995/dunet https://github.com/domn1995/dunet
It's on the roadmap and will arrive at some point:
https://github.com/dotnet/csharplang/blob/main/proposals/discriminated-unions.md https://github.com/dotnet/csharplang/blob/main/proposals/dis...