I have a large collection of data, i need to store the same in string array.
this array then passed into another class as callback event.
so i need to use index as enum values so that outside person can read the string values easily.
for this i tried this,
public enum PublicData : int
{
CardNo = 0,
CardName = 1,
Address = 2,
//etc....
}
then i have accessed this by,
string[] Publicdata = new string[iLength];
Publicdata[PublicData.CardNo] = cardNovalue;
but here i am getting "invalid type for index - error"
How to resolve the same.