How to remove a duplicates values from the array and list

Hi,

What about Union we can use this? instead of where

Union method produces the set union of two sequences. I don’t think it’s suitable for this case.

arrString.Count(function(y) y=x)=1)

This means, if number of the items (each item) is 1, it returns true, if not 1 returns false. As a result, we can filter duplicated items using Where method.

Regards,

2 Likes