Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 883 Bytes

eliminate-duplicate-elements-from-a-sequence.md

File metadata and controls

23 lines (17 loc) · 883 Bytes
description title ms.date dev_langs ms.assetid
Learn more about: Eliminate Duplicate Elements from a Sequence
Eliminate Duplicate Elements from a Sequence
03/30/2017
csharp
vb
2b224a84-bad5-4843-adcc-14e784d280f5

Eliminate Duplicate Elements from a Sequence

Use the xref:System.Linq.Queryable.Distinct%2A operator to eliminate duplicate elements from a sequence.

Example

The following example uses xref:System.Linq.Queryable.Distinct%2A to select a sequence of the unique cities that have customers.

[!code-csharpDLinqQueryExamples#36] [!code-vbDLinqQueryExamples#36]

See also