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); }
public int CompareTo(object obj) { Vorstellung other = (Vorstellung)obj; return(this.DateTime.CompareTo(other.DateTime)); }
public Bestellung(Vorstellung vorstellung, Kunde kunde, double preis) { Vorstellung = vorstellung; Kunde = kunde; Preis = preis; }