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 desktop example?
How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!
What is an event in c#?
What is a thread? What is multithreading?
What is COM Interoperability?
What is parameter c#?
Can we create instance of private class in c#?
Why data types are important in c#?
How do you achieve polymorphism in c#?
How many types of constructor are there in c#?
What is difference between list and ilist in c#?
What is using directive in c#?
What is asynccallback c#?
What are methods c#?
What does namespace mean?