摘要: 项目常用List来进行数据操作管理,有一些方法经常百度,所以这里记录下。 1. List判断元素是否存在,返回bool personList.Exists(t => t.name == "John") 2. List查找,返回对象 Person temp = personList.Find(t => 阅读全文
posted @ 2021-10-20 14:22 ZuoTian 阅读(1275) 评论(0) 推荐(0)