//LINQ按照自身字段分组froup
var res = from m in masterList
        group m by m.Menpai into g
        select new { count = g.Count(), g.Key }; //g.key key表示是哪找属性分的组