KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm having a List<string> like: List<String> list = new List<String>{"6","1","2","4","6","5","1"}; I need to get the duplicate items in the list into a new list. Now I'm using a nested for loop to do this. The resulting list will contain {"6","1"} . Is there any idea to do this using LINQ or lambda expressions ?
Tags (comma-separated)
Save Edits
Cancel