LINQ: Select Elements that Only Appear Once in a List

Posted by Ngu Soon Hui on Stack Overflow See other posts from Stack Overflow or by Ngu Soon Hui
Published on 2010-04-06T11:25:32Z Indexed on 2010/04/06 12:13 UTC
Read the original article Hit count: 115

Filed under:
|

I have a list of objects, can be of any type T.

How to select a list of objects that appear in that list only once using linq? For example, if my list is {2,3,4,5,8,2,3,5,4,2,3,4,6}, then the output should be {6,8}.

© Stack Overflow or respective owner

Related posts about c#

Related posts about LINQ