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 the Difference between the public and private ?
Could you explain the difference between func vs action vs predicate?
Is c# difficult to learn?
What is the advantage of generics in c#?
What's the c# syntax to catch any possible exception?
What are the two uses of a ‘using’ statement in c#?
What is gui in c#?
Can you see a loop recorder?
How to find the current application file path while runtime?
What is meant by generics in c#?
What is public void in c#?
What is a service layer c#?
What is the difference between console and windows application?
Is c# pass by value?
What is lazy t?