Пример #1
0
 public override bool Equals(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  cityEquality = (this.GetCity() == newVenue.GetCity());
         return(idEquality && nameEquality && cityEquality);
     }
 }