public Item FetchItem(string id) { foreach (Item InventoryItem in _inventory) { if (InventoryItem.AreYou(id) == true) { return(InventoryItem); } } return(null); }
}//item public Item FetchItem(string id) { foreach (Item InventoryItem in _inventory) { /* if (InventoryItem.AreYou(id) == true) * { * * return InventoryItem; * }*/ if (InventoryItem.AreYou(id) == true) { return(InventoryItem);//inventory } } return(null);//null }