.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

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -