check string contains in c# code example
Example 1: c# string contains
bool b = s1.Contains("myString");
Example 2: check if string is in string[] c#
Using System.Linq;
if(stringArray.All(stringToCheck.Contains)){
//Process
}
bool b = s1.Contains("myString");
Using System.Linq;
if(stringArray.All(stringToCheck.Contains)){
//Process
}