I have a list like so:
List<string[]> countryList
and each element of the string array is another array with 3 elements.
So countryList[0] might contain the array:
new string[3] { "GB", "United Kingdom", "United Kingdom" };
How can I search countryList for a specific array e.g. how to search countryList for
new string[3] { "GB", "United Kingdom", "United Kingdom" }?
To simply establish existence, use
countryList.Any.To find the index of the element or -1 if it does not exist, use
countryList.FindIndex.