rediffusion
11/3/2017 - 4:46 PM

Если переменная Test содержит "1" и не содержит "2"

if(strTest.Contains("1") && !strTest.Contains("2") ){}