I had the database Like this before
ItemName Price
Against Item name I had the price in hashtable. some of my code is Like this
Hashtable pricesTilesBox = new Hashtable();
string itemNameData=myReader["ItemName"].ToString().Trim();
int price=Convert.ToInt32(myReader["Price"]);
pricesTilesBox.Add(itemNameData,price);
foreach (string key in pricesTilesBox.Keys)
{
Console.WriteLine(key + '=' + pricesTilesBox[key]);
}
But now i have changed database table
ItemName PriceLight PriceDark
So which data structure could be used now that i can get PriceLight PriceDark
against itemName
.because there are two prices now. Can hashtable be also used in this case?