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); }
public Square(int id, Pseudo j) { Id = id; Owner = j; }