| Author: Kapil Dhawan 17 Jun 2008 | Member Level: Gold Points : 2 |
Hello Nice piece of code Thanks for sharing your knowledge with us. I hope to see more good code from your side This code is going to help lots of guys. Ton Thanks to you Regards, Kapil
|
| Author: Ankit Bhadana 17 Jun 2008 | Member Level: Bronze Points : 0 |
thanks for the code Regards Ankit
|
| Author: Nanak Deep 18 Jun 2008 | Member Level: Bronze Points : 2 |
sir i have executed this program
public enum day_variable { var1_for_function=1, var2_while_function=2, var3_do_while_function=3, var3_foreach_function=4, }
public void function1() { day_variable var1 = day_variable.var1_for_function; Console.WriteLine(var1); }
nd ur code too
one thig is that:
using enum is better than using plain integers
didnt get the concept, why we are using it,,it just have a pop up at typeing, just only for that
when we access enum monday=1, ?//why we used 1 here we have to use enum.monday will return "monday"
whats the benefit ?
sir very confusing, why we are using it?
|
| Author: Nanak Deep 18 Jun 2008 | Member Level: Bronze Points : 1 |
1.why we use enum?
2.in what cases we should use enum?
3.where we use enums?
|
| Author: thebarrett27 20 Jun 2008 | Member Level: Bronze Points : 0 |
nice code thanks
|