In This Topic
Selects distinct elements from an enumeration.
Syntax
'Declaration
Public Shared Function Distinct(Of )( _
ByVal As System.Collections.Generic.IEnumerable(Of TSource), _
Optional ByVal As System.Collections.Generic.IEqualityComparer(Of TSource) _
) As System.Collections.Generic.IEnumerable(Of TSource)
public static System.Collections.Generic.IEnumerable<TSource> Distinct<>(
System.Collections.Generic.IEnumerable<TSource> ,
System.Collections.Generic.IEqualityComparer<TSource>
)
Parameters
- source
- The source.
- comparer
- The comparer.
Type Parameters
- TSource
- The type of the T source.
Return Value
A enumeration of selected values
See Also