Group by the first letter of name Using LINQ
Group by the first letter of name Using LINQ Program: List < String > names = new List < string >() { "Elizabeth" , "Mr Christian" , "James Stephens" , "Neal Sussman" , "Richard E" , "Peter Banes" , "William Cook" , "Matthew D" , "Mark Dennis" , "Mrs Camilla Harrison" , "Robert" , "John Smith" }; var groupedNames = from n in names group n by n[0] into g orderby g.Key select new { FirstChar = g....