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 nested for
loop to do this.
The Resulting list
will contain {"6","1"}
Is there any idea to do this using LINQ or Lambda expression?