[]
Selects distinct elements from an enumeration.
public static IEnumerable<TSource> Distinct<TSource>(IEnumerable<TSource> source, IEqualityComparer<TSource> comparer = null)
| Type | Name | Description |
|---|---|---|
| IEnumerable<TSource> | source | The source. |
| IEqualityComparer<TSource> | comparer | The comparer. |
| Type | Description |
|---|---|
| IEnumerable<TSource> | A enumeration of selected values |
| Name | Description |
|---|---|
| TSource | The type of the T source. |