public static Hashtable Drinks = new Hashtable();
Drinks["Water"] = 3;
Drinks["Coffee"] = 2
Drinks["Beer"] = 5;
To get the value of the element I'm using: int drink = (int) Drinks ["Water"]; which is working.
I wanted to know how I can do this job. card pCardValue1 = (int) [1];
How instead of entering the name of the element I want to get the value by position.
source
share