Beispiel:
Code: Select all
string stringToCheck = "text1text2text3";
string[] stringArray = { "text1", "someothertext" };
if (stringToCheck.Contains(stringArray)) // Is one of the items?
{
}
Code: Select all
string stringToCheck = "text1text2text3";
string[] stringArray = { "text1", "someothertext" };
if (stringToCheck.Contains(stringArray)) // Is one of the items?
{
}