Exemplo n.º 1
0
        private static void RE_GetGroups()
        {
            List <string> GroupNames = new List <string>();

            /*GroupNames.AddRange(ExportTable.Where(E => E.Group != 0).Select(E => NameTable[ExportTable[E.Group].NameTableRef]).Distinct());
             * GroupNames.ForEach(N => Console.WriteLine(N));*/
            ExportTable.Select(E => E.Group)
            .Distinct()
            .Where(E => E != 0)
            .OrderByDescending(g => g)
            .Select(G => ExportTable[G - 1])
            .Select(E => E.NameTableRef)
            .Select(N => NameTable[N])
            .ToList()
            .ForEach(N => Console.WriteLine(N));
        }