Exemplo n.º 1
0
 public override bool Equals(Object otherBand)
 {
     if (!(otherBand is Band))
     {
         return(false);
     }
     else
     {
         Band newBand                 = (Band)otherBand;
         bool idEquality              = newBand.GetId() == this._id;
         bool nameEquality            = newBand.GetName() == this._name;
         bool numberOfPlayersEquality = newBand.GetNumberOfPlayers() == this._numberOfPlayers;
         return(idEquality && nameEquality && numberOfPlayersEquality);
     }
 }