Example #1
0
 public bool Equals(KFZ k)
 {
     if (k.Kennzeichen != this.Kennzeichen)
     {
         return(false);
     }
     return(this.Kennzeichen.Equals(k.Kennzeichen));
 }
Example #2
0
        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));
            }
        }