.NET 2
string[] myStrings = GetMyStrings(); string test = \"testValue\";
How can I verify if myStrings contains test
myStrings
test
you can use Array.BinarySearch as described below.
string[] strArray = GetStringArray(); string strToSearch ="test"; Array.BinarySearch(strArray, strToSearch);