The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Enumerable::Distinct Method
.NET Framework (current version)
Returns distinct elements from a sequence.
Assembly: System.Core (in System.Core.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Distinct<TSource>(IEnumerable<TSource>^) | Returns distinct elements from a sequence by using the default equality comparer to compare values. |
![]() ![]() | Distinct<TSource>(IEnumerable<TSource>^, IEqualityComparer<TSource>^) | Returns distinct elements from a sequence by using a specified IEqualityComparer<T> to compare values. |
The result sequence is unordered.
Show:

