static void FindRicher(List <People> pp) { People richMan = pp.OrderByDescending(n => n.Balance).FirstOrDefault(); Console.WriteLine("Самый богатый: " + richMan.Name + " - " + richMan.Balance); }
static void FindOlder(List <People> pp) { People oldMan = pp.OrderByDescending(n => n.Age).FirstOrDefault(); Console.WriteLine("Самый старший: " + oldMan.Name + " - " + oldMan.Age); }