Hi, ive been trying to print out a dictionary item with its List but im so confused about it.
Basically I created a dictionary and I managed to add an Item to the dictionary(as a Key) and List of something (as value)
Dictionary<String, List<string>> dic = new Dictionary<String, List<string>>();
public void addItem(Item newItem)
{
List<string> info = new List<string>();
dic.Add(newItem.getItemName(), info);
info.Add(newItem.getDescription());
info.Add(newItem.getManufacturer());
}
Im confused how am I going to print an Item in the dictionary with its description and manufacturer like if im going to add a code
public void listItemInfo(String itemName)
{
}
any ideas?