예제 #1
0
 /// <summary>
 /// Checks if two entries are equal by comparing both names and score.
 /// </summary>
 /// <param name="otherUser">The entry being compared to this entry.</param>
 /// <returns>true if entries are equal, false otherwise</returns>
 public Boolean isEqual(UserEntry otherUser)
 {
     if (this.firstName != otherUser.GetFirstName())
     {
         return(false);
     }
     if (this.lastName != otherUser.GetLastName())
     {
         return(false);
     }
     if (this.score != otherUser.GetScore())
     {
         return(false);
     }
     return(true);
 }