最佳答案
假设我有一个类Customer,它有一个属性FirstName。然后我有一个List<Customer>。
LINQ可以用来查找列表中是否有Firstname = 'John'的客户在单个语句中。如何?