📅  最后修改于: 2022-03-11 14:49:08.698000             🧑  作者: Mango
代码示例1
//linq
bool b = listOfStrings.Any(s=>myString.Contains(s));
//shorter but less clear
bool b = listOfStrings.Any(myString.Contains);