
September 25th, 2003, 06:02 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Posts: 15
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
from a int/number to enum string value
Code:
enum Indentifier
{
Category,
FundsInCategory,
ISIN,
FundName,
Promotor,
Currency,
DividendPaying,
LastDividend,
LastDividendDate,
}
as you know if you do
(int)Indentifier.ISIN it will be 2 and
Indentifier.ToString() will give "ISIN"
but if I have a number say 5 and I want the corresponing Indentifier string "Currency" how do I get it?
so that I can something like this?
Code:
for(int i = 0; i < Indentifier Size; ++i)
{
Write(Indentifier[i].toString());
}
any ideas?
|