[quote=引用 1 楼 wtuqi 的回复:] //定义一个List List<string> ls = new List<string> { "a", "b", "c", "def" }; //查找list中为b的这一项 var item = ls.Find((x) => { return x == "b"; });
//定义一个List List<string> ls = new List<string> { "a", "b", "c", "def" }; //查找list中为b的这一项 var item = ls.Find((x) => { return x == "b"; });
7,540
社区成员
27,673
社区内容
加载中
试试用AI创作助手写篇文章吧