What is the use of Enums in C#?

 Posted by vishalneeraj-24503 on 1/13/2014 | Category: C# Interview questions | Views: 782 | Points: 40
Answer:

Enums or Enumerators are used to declare a set of related constants by-default they start with 0 index position.They are only available with primitive data types like int and short etc.

public enum CRUD_operations

{
add,
update,
delete
}


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response