.net - Non Unique Values from a list of of items in C# -
I have a list
list = {1,1,1,2, 3 , 3,3,4,4,5,6,6,6}
Now I have to create a list of unique values
In the last list {2,5 } Only
How can I do this through LINQ or any other function.
In a way, using the grouping method and only those who count 1 have to filter them .
var nonUnique = list.GroupBy (l => G = & gt; G. () == 1). Select (g = & gt; g);
Comments
Post a Comment