Exemplo n.º 1
0
 //CheckIfInTopTen returns true if newScore is higher than the current 10th place
 public bool CheckIfInTopTen(OneScoreFromTopTen newScore)
 {
     //if new score is higher than 10th score
     //CompareTo() returns <0 if this precedes other in the sort order
     if (newScore.CompareTo(topTenScores [topTenScores.Count - 1]) < 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }