Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Distinct Method

List<T>.Distinct Method

.NET Framework 3.5

Returns distinct elements from a sequence.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public Extension Method Distinct() Returns distinct elements from a sequence by using the default equality comparer to compare values. (Defined by Enumerable.)
Public Extension Method Distinct(IEqualityComparer<T>) Returns distinct elements from a sequence by using a specified IEqualityComparer<T> to compare values. (Defined by Enumerable.)
Top

The result sequence is unordered.

Community Additions

ADD
Show:
© 2015 Microsoft