6
Reply

What is the usage of Enumeration in C# Programming and is it good to use or not ?

Praveen Kumar

Praveen Kumar

10y
3.9k
1
Reply
    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.
    nice
    If you have group of constant value then it better to use enums.
    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.
    http://www.codeproject.com/Articles/18809/Enums-in-C
    kindly share your advice?