ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.5.2 Assembly / C1.Util.DX Namespace / DXUtil Class / Distinct<TSource> Method
The type of the T source.
The source.
The comparer.

In This Topic
    Distinct<TSource> Method
    In This Topic
    Selects distinct elements from an enumeration.
    Syntax
    'Declaration
     
    Public Shared Function Distinct(Of TSource)( _
       ByVal source As System.Collections.Generic.IEnumerable(Of TSource), _
       Optional ByVal comparer As System.Collections.Generic.IEqualityComparer(Of TSource) _
    ) As System.Collections.Generic.IEnumerable(Of TSource)
    public static System.Collections.Generic.IEnumerable<TSource> Distinct<TSource>( 
       System.Collections.Generic.IEnumerable<TSource> source,
       System.Collections.Generic.IEqualityComparer<TSource> comparer
    )

    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