Our great sponsors
-
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.
I'd recommend opening a discussion thread on https://github.com/dotnet/csharplang/discussions/new to see if this is something the language could possibly provide as a separate feature so that all kinds of enums work, regardless of target framework or what compiled them.
There is a github project StronglyTypedId which promises to support the latter kind of thing via source generation though I haven't yet tried it in practice.
You might wanna take a look at https://github.com/Cysharp/UnitGenerator we've used it on some of our systems at work and works pretty well overall as Value Objects.