I have not thought much on this issue, but this is what i did, to over come 
Enum to underlying value or conversion, or to any other value conversion. I 
have written a Convert class in the name space, and had static methods in it to 
convert each Enum type to different values like,

  Convert.ToInt(Enum anEnumeration);

  Convert.ToDouble(Enum anEnumeration);

  Convert.ToAnotherObject(Enum anEnumeration);

  Thanks,
Ravi


=====
"Keep these concepts in mind: You've failed many times, although you don't 
remember. You fell down the first time you tried to walk. You almost drowned 
the first time you tried to swim. . . . Don't worry about failure. My 
suggestion to each of you: Worry about the chances you miss when you don't even 
try." Sherman Finesilver

---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to