📜  通过 LINQ 在列表中查找项目 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:16.339000             🧑  作者: Mango

代码示例1
string search = "lookforme";
 List myList = new List();
 string result = myList.Single(s => s == search);