List<string> strlist = new List<string> { "one","two", "three" };
string somevalue = "two";
var result = strlist.Exists(e2 => e2 == somevalue);
如何将最后一条语句 Exists() 转换为表达式树?
函数式编程
相关分类