Here’s a List<> that is inside a method
public void MenuList()
{
List<string> flavors = new List<string>();
flavors.Add("Angus Steakhouse");
flavors.Add("Belly Buster");
flavors.Add("Pizza Bianca");
}
Now, I put a new method
public int GetSizePrices(int num)
{
this.MenuList ???
}
How can I use the flavor object inside GetSizePrices method?
Thanks.
I think you’re looking for something like?: