void PrintAllContestantInfo(Contestant contestant) { foreach (KeyValuePair<int, string> pair in sweepstakesDictionary) { Console.WriteLine("{0}, {1}", contestant.GetNumber, contestant.GetName); } }
void PrintContestantInfo(Contestant contestant) { Console.WriteLine("{0}, {1}", contestant.GetNumber, contestant.GetName); }
void RegisterContestant(Contestant contestant) { sweepstakesDictionary.Add(contestant.GetNumber, contestant.GetName); }