string has value c# code example
Example 1: c# check if string is empty
if (string.IsNullOrEmpty(myString)) {
//
}
Example 2: check if string is in string[] c#
Using System.Linq;
if(stringArray.All(stringToCheck.Contains)){
//Process
}
if (string.IsNullOrEmpty(myString)) {
//
}
Using System.Linq;
if(stringArray.All(stringToCheck.Contains)){
//Process
}