in
foreach (string item in GroceryList)
{
Console.WriteLine(GroceryList);
}
break;
wouldn't you be better off doing
Console.WriteLine(item);
Also note that 'item' here has completely different 'scope' to the item declared at the top of your program - in fact, I prefer not to do this as all - I make the variable name in the foreach reflective of the list - so I might use
foreach (string GroceryListitem in GroceryList)
{
Console.WriteLine(GroceryListitem);
}
break;
is that what you were looking for ?