Beispiel #1
0
        public override bool Equals(Object obj)
        {
            bool bRetour = false;

            if (obj != null && obj.GetType() == typeof(Pseudo))
            {
                Pseudo toCompare = (Pseudo)obj;

                bRetour = (this.Id == toCompare.Id) &&
                          (this.Name == toCompare.Name) &&
                          (this.Avatar == toCompare.Avatar) &&
                          (this.NombrePartie == toCompare.NombrePartie) &&
                          (this.Victoires == toCompare.Victoires);
            }

            return(bRetour);
        }
Beispiel #2
0
 public Square(int id, Pseudo j)
 {
     Id    = id;
     Owner = j;
 }