Answer Posted / nishesh
ENUM is a user defined data type. and it is declared to hold constant values for a set of data
example
enum days {sun,mon,tue,wed,thur,fri,sat}
will assign values like this
sun=0
mon=1
tue=2
and so on
if we want to use that series then we can do like this
int First_day=(int)days.sun;
it will give
First_day = 0
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can properties be private in c#?
What do you mean by object pooling?
How will you deploy the dll file in gac?
What is difference between float and decimal?
For methods inside the interface why can’t you specify the accessibility modifier?
What is pure abstract class in c#?
Is enum a value type c#?
Is struct object oriented?
What do you mean by jagged arrays in c#?
What do you mean by abstract class in c#?
What is the difference between values and reference types?
What is the class in c#?
What is virtual class in C#?
How does a while loop work?
What are modifiers in c#?