Пример #1
0
 public override bool Equals(System.Object otherStylist)
 {
     if (!(otherStylist is Stylist))
     {
         return(false);
     }
     else
     {
         Stylist newStylist    = (Stylist)otherStylist;
         bool    idEquality    = (this.GetId() == newStylist.GetId());
         bool    nameEquality  = (this.GetStylistName() == newStylist.GetStylistName());
         bool    chairEquality = (this.GetStylistChair() == newStylist.GetStylistChair());
         return(idEquality && nameEquality && chairEquality);
     }
 }