Пример #1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (obj == null || this.GetType() != obj.GetType())
            {
                return(false);
            }
            Vorstellung other = (Vorstellung)obj;

            if (!this.VorstellungId.Equals(other.VorstellungId))
            {
                return(false);
            }
            return(true);
        }
Пример #2
0
        public int CompareTo(object obj)
        {
            Vorstellung other = (Vorstellung)obj;

            return(this.DateTime.CompareTo(other.DateTime));
        }
Пример #3
0
 public Bestellung(Vorstellung vorstellung, Kunde kunde, double preis)
 {
     Vorstellung = vorstellung;
     Kunde       = kunde;
     Preis       = preis;
 }