Interviews6 answers
What is the usage of Enumeration in C# Programming and is it good to use or not ?
6 Answers
Enumeration used for giving a more meaningful name to some constant.
Like
if you have three action named Add,Remove,Update
than you can create an enum
enum Mode
{
Add,
Update,
Remove
}
It is good to use enumeration because it improves readability.
Khaleek AhmadPosted Feb 2, 2017, 1:05 AM EST
nice
Kapi ShivharePosted Jul 17, 2016, 8:39 AM EDT
If you have group of constant value then it better to use enums.
sushil kumarPosted Jun 1, 2016, 2:34 AM EDT
It is a feature to group a set of constants.
Yes, it is good to use and it
->improves readability
-> provides default values to enum members.
Gayatri SravyaPosted May 4, 2016, 2:23 AM EDT
http://www.codeproject.com/Articles/18809/Enums-in-C
kanhu pandaPosted Feb 2, 2016, 12:00 AM EST
kindly share your advice?
Praveen KumarPosted Nov 1, 2015, 7:09 AM EST


