I have below code. But I am looking for opposite of Contains. Meaning, it it does not contain, I want to perform an action. Any suggestion?
string stringToCheck = "text1";
string[] stringArray = { "text1", "testtest", "test1test2", "test2text1" };
foreach (string x in stringArray)
{
if (stringToCheck.Contains(x))
{
// Process...
}
}