Summary:
For my business class, we have to develop a product and/or service. I'm trying to develop a solution for other groups to help them manage their inventory. I've already got one working in Python, however, C# makes developing GUI easier (Thank you, Visual Studio). I'm having difficulties with a list of lists.
Resources Previously checked:
Creating a List of Lists in C#
Variables In Use:
int timesRan = 0;
private List<List<String>> itemList = new List<List<String>>();
Code In Use:
do
{
timesRan++;
itemList[timesRan - 1].contains(SearchName.Text);
} while (timesRan < itemList.Count);
Question:
When I do this, the IDE (Visual Studio Community 2017) tells me " 'List' does not contain a definition for 'Contains' and no extension method accepting a first argument of type 'List' could be found". So how do I check if the list at the index contains a given string? Have I overlooked something in the resources I checked?
>`? You just need `List` based on your scenario. What do you want to do after you find the text?
– Win Jul 26 '18 at 02:29>` in this.
– John Smith Jul 26 '18 at 02:32