How to add same Enum name for different values like this? Any possible implementation for this?
public enum Location { A = 1, A = 2, A = 3, B = 4, B = 5 } Update:
I have a db table and from that i need to create Enum for Id from that table. I need to assign same names for some Id's. So that i need this kind of implementation. By passing the Id as value to get the Enum name.
Idwith same name for someId's and so need haveenum