private static void Reverse() { List <Gamer> gamers = GamerHelper.GetSampleGamers(); gamers.Reverse(); CommonMethod.WriteListItem(gamers); }
private static void GamerOrderByName() { IOrderedEnumerable <Gamer> gamers = GamerHelper.GetSampleGamers().OrderBy(item => item.Name); CommonMethod.WriteListItem(gamers); }
private static void OrderByScoreByNameById() { IOrderedEnumerable <Gamer> gamers = GamerHelper.GetSampleGamers().OrderBy(item => item.Score).ThenBy(item => item.Name).ThenBy(item => item.Id); CommonMethod.WriteListItem(gamers); }