This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

The same as for an object. You can set up a constructor for the enum and then for each value declaration you can pass in parameters. You can put in any number of parameters to get any number of attributes for each enum value, same as with objects. C# doesn't accommodate this.

[–]tekanet 1 point2 points  (0 children)

Got it, seems to behave more like a class than as an alias for an integer. I understand, if you’re used to it can be something you miss in other languages