I have a multidimensional string array of unknown length with the following data:
string[,] phrases = new string[,] { { "hello", "world" }, { "hello2", "world2" } };
I am trying to search through the array to find both words in the order that they are in the array.
Does something like the following exist please?
Console.WriteLine(Array.Exists(phrases, {"hello", "world"})); // Result should be True
Console.WriteLine(Array.Exists(phrases, {"hello", "hello2"})); // Result should be False