.NET 2
string[] myStrings = GetMyStrings(); string test = \"testValue\";
How can I verify if myStrings contains test
myStrings
test
Instead of using a static array, you could use a List:
List myStrings = new List(GetMyStrings()); if(myStrings.Contains("testValue")) { // Do Work }