Enumerable.distinct Method
Returns distinct elements from a sequence by using the equality comparer to compare values.
This method is static.
Parameters
- source
-
Type: IEnumerable
The sequence to remove duplicate elements from.
- equalityComparer
-
Type: IEqualityComparer
An equality comparer to compare join keys.
Optional: True
Return Value
Type: IEnumerable
An enumerable that contains distinct elements from the source sequence.