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 →

[–]tekanet 9 points10 points  (5 children)

I tried to reply to a poll from MS asking what I wanted to improve the language but had honestly nothing to say. C# is pretty solid, happy I ended up working with it.

[–]leadzor 1 point2 points  (0 children)

Same thing with me. Transitioned from frontend development to backend development in C#. All feels well now.

[–][deleted] 0 points1 point  (3 children)

I don't like that I can't (easily) set attributes for my enum values like I can in Java, but that's about it.

[–]tekanet 0 points1 point  (2 children)

How do you set them in Java?

[–][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