Beispiel #1
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  contactEquality   = this.GetContact() == newVenue.GetContact();
                bool  addressEquality   = this.GetAddress() == newVenue.GetAddress();
                bool  eventDateEquality = this.GetEventDate() == newVenue.GetEventDate();

                return(idEquality && nameEquality && eventDateEquality && contactEquality && addressEquality);
            }
        }