.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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -