Например:
Код: Выделить всё
string stringToCheck = "text1text2text3";
string[] stringArray = { "text1", "someothertext" };
if (stringToCheck.Contains(stringArray)) // Is one of the items?
{
}
Подробнее здесь: https://stackoverflow.com/questions/291 ... ring-array
Мобильная версия