METHOD
Enumerable.Distinct
Returns distinct values under the selected equality comparison.
Formal Syntax & Structure
csharp syntaxcsharp
source.Distinct(comparer)Working Example
Example Snippetcsharp
using System;using System.Linq;var q = new[] {1,1,2}.Distinct();