コード例 #1
0
 public void PrintContestantInfo(Contestant contestant)
 {
     Console.WriteLine("Email Address: " + contestant.EmailAddress + " First Name: " + contestant.FirstName + "Last Name: " + contestant.LastName + "Registration Number: " + contestant.RegistrationNumber);
 }
コード例 #2
0
 public void RegisterContestant(Contestant contestant)
 {
     contestants.Add(contestant.RegistrationNumber, contestant);
 }