c# - Check if List<List<string>> contains a string -
how can check if list<string>
s in list
contain given string? know how loop, there way linq/in 1 line?
if (lists.any(sublist => sublist.contains(str)))
how can check if list<string>
s in list
contain given string? know how loop, there way linq/in 1 line?
if (lists.any(sublist => sublist.contains(str)))
Comments
Post a Comment