Exemplo n.º 1
0
 public int CompareTo(UserScore u)
 {
     if (u == null)
     {
         return(1);
     }
     else
     {
         return(this.weekScore.CompareTo(u.weekScore));
     }
 }
Exemplo n.º 2
0
 public bool Equals(UserScore other)
 {
     if (other == null)
     {
         return(false);
     }
     if (other is UserScore)
     {
         return(this.userName.Equals(((UserScore)other).userName));
     }
     else
     {
         return(false);
     }
 }