.NET 2
string[] myStrings = GetMyStrings(); string test = \"testValue\";
How can I verify if myStrings contains test
myStrings
test
Here is almost the exact same question on msdn. Find String in String Array As others have said you really have two options: 1) Use a list for easier checking 2) Loop through your array to find the string