public bool Equals(KFZ k) { if (k.Kennzeichen != this.Kennzeichen) { return(false); } return(this.Kennzeichen.Equals(k.Kennzeichen)); }
public override bool Equals(object obj) { if (obj == null) { return(false); } KFZ objAsPart = obj as KFZ; if (objAsPart == null) { return(false); } else { return(Equals(objAsPart)); } }