public enum DatePart
{
YEAR = 0,
MONTH = 1,
DAY = 2,
HOUR = 3,
MIN = 4,
SEC = 5,
MILLI = 6
};
and i am referencing, say DatePart.MONTH in the code somewhere (outside the enum),
HOW DO I GET THE ASSOCIATED VALUE (1) ?
e.g.
Console.Write("Value = " + DatePart.MONTH);
prints
Value = MONTH
and i want
Value = 1
thx,
- a -

New Topic/Question
Reply




MultiQuote





|