I am node.js developer, and currently i change my qualification on .net, and at the moment doing my pet-project.
In node.js, i can collect enums:
enum CustomExceptions = {
UserNotFound = "User not found.",
InternalException = "Internal Exception."
}
But in C# enums only can have int value :
enum CustomExceptions = {
UserNotFound = 0,
InternalException = 1
}
Can you explain me plz, how i can do it more usefull and good?
I read about [Description], but how i look, it is not the best choice, because i will need a new class for getting this property, however i want to avoid this way.