Linq dynamic where count?
Is it possible to use list in where. I want somethink like this: public class Customer { string FirtsName; string LastName; int Number; ..... } I want to filter customers with using checkboxes. If I select FirstName and Number then where clause will be generated .where(x=> x.FirstName == "SomeFirstName" && x.Number == someNumber) If I select only number then where clause will be generated .where(x.Number == someNumber) If I select FirstName, LastName and Number then where clause will be generated .where(x=> x.FirstName == "SomeFirstName" && x.Number == someNumber && x.LastName == "LastName") I