Fastest way to Remove Duplicate Value from a list<> by lambda
what is fastest way to remove duplicate values from a list.
Assume List<long> longs = new List<long> { 1, 2, 3, 4, 3, 2, 5 }; So I am interesting in use lambda to remove duplicate and returned : {1, 2, 3, 4, 5}. What is your suggestion?
Lambda expression "IN" operator Exists?
I'm looking for to build the Lambda expression like the below
IQueryable<Object> queryEntity =
_db.Projects.Where(Project=>Project.Id.IN(1,2,3,4));
I don't find any IN operator in Lambda expression.
Anybody have suggestions?