score:20

Accepted answer

Use the Any extension method.

bool exists = myVar.Any(x => x.MyName == "Bob" && x.MyJob == "Taxi Driver");

score:6

You can use .Any()

Example :

bool mExists = myVar.Any(x => x.MyName == "Bob" && x.MyJob == "Taxi Driver");

Related Articles