Пример #1
0
        private static void Reverse()
        {
            List <Gamer> gamers = GamerHelper.GetSampleGamers();

            gamers.Reverse();
            CommonMethod.WriteListItem(gamers);
        }
Пример #2
0
        private static void GamerOrderByName()
        {
            IOrderedEnumerable <Gamer> gamers = GamerHelper.GetSampleGamers().OrderBy(item => item.Name);

            CommonMethod.WriteListItem(gamers);
        }
Пример #3
0
        private static void OrderByScoreByNameById()
        {
            IOrderedEnumerable <Gamer> gamers = GamerHelper.GetSampleGamers().OrderBy(item => item.Score).ThenBy(item => item.Name).ThenBy(item => item.Id);

            CommonMethod.WriteListItem(gamers);
        }