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
What is tryparse c#?
List down the access modifiers available in c#?
What are the features of c#?
Is c# used for frontend or backend?
What is trim in c#?
What kind of the information stored inside the assembly?
When is a class declared as a class abstract?
What is object array in c#?
Define parsing?
What is difference between ilist and list in c#?
What is attribute and reflection in c#?
How big is a 64 bit integer?
What do you mean by “finalize” and “finally” methods in c#?
What is difference between iqueryable and ienumerable in c#?
What the different phase/steps of acquiring a proxy object in webservice?