TYPE
SortedSet<T>
Maintains unique elements ordered by its comparer, which also determines duplicates.
Formal Syntax & Structure
csharp syntaxcsharp
new SortedSet<T>()Working Example
Example Snippetcsharp
using System.Collections.Generic;var ids = new SortedSet<int> { 3, 1, 3 };System.Console.WriteLine(string.Join(",", ids));