📌  相关文章
📜  c# 基于第一个字符的组数组 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:19.494000             🧑  作者: Mango

代码示例1
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);