Esempio n. 1
0
 public override bool Equals(Object otherVenue)
 {
     if (!(otherVenue is Venue))
     {
         return(false);
     }
     else
     {
         Venue newVenue        = (Venue)otherVenue;
         bool  idEquality      = newVenue.GetId() == this._id;
         bool  nameEquality    = newVenue.GetName() == this._name;
         bool  addressEquality = newVenue.GetAddress() == this._address;
         return(idEquality && nameEquality && addressEquality);
     }
 }
Esempio n. 2
0
 public override bool Equals(System.Object otherVenue)
 {
     if (!(otherVenue is Venue))
     {
         return(false);
     }
     else
     {
         Venue newVenue         = (Venue)otherVenue;
         bool  idEquality       = this.GetId() == newVenue.GetId();
         bool  nameEquality     = this.GetName() == newVenue.GetName();
         bool  addressEquality  = this.GetAddress() == newVenue.GetAddress();
         bool  capacityEquality = this.GetCapacity() == newVenue.GetCapacity();
         return(idEquality && nameEquality && addressEquality && capacityEquality);
     }
 }