Mega Code Archive

 
Categories / C# Book / 03 Collections
 

0364 Loading the letters into a char-typed SortedSet

using System; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Collections.Generic; using System.Linq; using System.Reflection; class Program { static void Main() { var letters = new SortedSet<char>("rntsoft.com"); foreach (char c in letters) Console.Write(c); } }