Answers for "c# group array based on first character"

C#
0

c# group array based on first character

Select().GroupBy(x => x.Name.Substring(0,1).ToUpper(), 
        (alphabet, subList) => new { 
          Alphabet = alphabet, 
          SubList = subList.OrderBy(x => x.Name).ToList() 
        }).OrderBy(x => x.Alphabet);
Posted by: Guest on April-10-2020

Code answers related to "c# group array based on first character"

C# Answers by Framework

Browse Popular Code Answers by Language