how to use contains c# code example
Example 1: c# string contains
var str = "a string to search in";
bool isIn = str.Contains("a string");
Example 2: check if string is in string[] c#
Using System.Linq;
if(stringArray.All(stringToCheck.Contains)){
//Process
}