In Java, it’s possible to have methods inside an enum.
Is there such possibility in C# or is it just a string collection and that’s it?
I tried to override ToString()
but it does not compile. Does someone have a simple code sample?
In Java, it’s possible to have methods inside an enum.
Is there such possibility in C# or is it just a string collection and that’s it?
I tried to override ToString()
but it does not compile. Does someone have a simple code sample?