示例#1
0
        // Method to print entire name of athelete concatenating first name and last name
        public string PrintName(Athlete athlete)
        {
            string name = athlete.FirstName + " " + athlete.LastName;

            return(name);
        }
示例#2
0
        // Method to print a lap time from the list of laps for a given index
        public string PrintTimes(Athlete athlete, int number)
        {
            string printedTime = athlete.Laps.ElementAt(number).ToString();

            return(printedTime);
        }