Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,
Please help me for bellow issue.

I have a list say List<skill> lstTempSkill which contain skill_setID & skill_Name
& i have another string array contain skill_setID, now i needs to filter
lstTempSkill comparing List match with String array value using linq.

So far i have tried with foreach but it is take time.
Posted
Comments
Tomas Takac 25-Nov-15 6:14am    
What did you try? Can you show your code?
BillWoodruff 25-Nov-15 8:00am    
Need more specific details to assist you. Show the structure of the List.

1 solution

Try something like following-
C#
var duplicateSkills = lstTempSkill.Where(skill => myArray.Contains(skill.skill_setID);


Hope, it helps :)
 
Share this answer
 

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