NDepend.API Documentation
Distinct<T,TKey> Method
NDepend.Helpers Namespace > ExtensionMethodsEnumerable Class : Distinct<T,TKey> Method
The type of the elements of seq.
The type on which elements of seq are projected.
The source sequence that contains elements.
The projection function to obtain an instance of type TKey from an instance of type T.
Returns distinct elements from a sequence seq by using the default equality comparer of the type TKey, on which items are projected through funcProjection.
Syntax

Parameters

seq
The source sequence that contains elements.
funcProjection
The projection function to obtain an instance of type TKey from an instance of type T.

Type Parameters

T
The type of the elements of seq.
TKey
The type on which elements of seq are projected.

Return Value

The sequence of distinct items.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsEnumerable Class
ExtensionMethodsEnumerable Members