Y
Hacker News
new
|
ask
|
show
|
jobs
by
jaredpar
3218 days ago
There is a proposal for "sealed enums" on the C# language repo that have the semantics you are looking for.
https://github.com/dotnet/csharplang/issues/782