Beispiel #1
0
 public override bool Equals(System.Object otherStylist)
 {
     if (!(otherStylist is Stylist))
     {
         return(false);
     }
     else
     {
         Stylist newStylist  = (Stylist)otherStylist;
         bool    idEqual     = (this.GetId() == newStylist.GetId());
         bool    nameEqual   = (this.GetName() == newStylist.GetName());
         bool    detailEqual = (this.GetDetail() == newStylist.GetDetail());
         return(idEqual && nameEqual && detailEqual);
     }
 }