Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi my friends
I want to do some thing like this
list.where(List2.contains(int x));
is there any way to do this
please some help .......
Posted
Updated 28-Apr-15 3:33am
v3
Comments
Sascha Lefèvre 28-Apr-15 9:38am    
Your question allows for more than one interpretation :)
Sascha Lefèvre 28-Apr-15 10:16am    
Please explain in more detail what you want to accomplish
Karthik_Mahalingam 28-Apr-15 14:20pm    
post your full code related to your question.
add more info to the question.

1 solution

Try list.where(x=> x.id == (List2.where(y=>List2.contains(value).first().id);

Here value is what you are trying to find in list2.

Though if you know the id that you want to search for, then
list.where(x => x.id == value) is going to work as well.
 
Share this answer
 
v3
Comments
Member 10198655 28-Apr-15 9:40am    
thanks a lot
but i want also to be x field from database that contain more the one value
and thank you for your help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900