Exemple #1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null || this.GetType() != obj.GetType())
            {
                return(false);
            }

            Saal other = (Saal)obj;

            if (!this.SaalName.Equals(other.SaalName))
            {
                return(false);
            }
            if (!this.AnzahlSitze.Equals(other.AnzahlSitze))
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
 public Vorstellung(Film film, Saal saal, DateTime dateTime)
 {
     Film     = film;
     Saal     = saal;
     DateTime = dateTime;
 }