I have a list of strings and i have multiple strings added to it . ex: l1 is a list with three values
List<string> l1 = new List<string>
{
"issue: there are multiple data errors ",
"resolution: you can correct the data or /n raise an SR on this issue",
"rootfix: you need to be contious while entering the data "
};
Now i need to check if this list has got all three key strings ie.
List<string> keyWords = new List<string> { "isue", "resolution", "rootfix" };
I dont think i can use Contains operation on this as the above strings are substrings of the list strings.
Please let me know if there is any function available /logic.
If all the three substrings are there in the list then i need to return boolian
StartsWith()-> learn.microsoft.com/en-us/dotnet/api/…Contains? You can just use it in a loopList<T>.Any()IEnumerable.Containsmethod but theString.Containsmethod