public override bool Equals(System.Object otherStylist)
 {
     if (!(otherStylist is Stylist))
     {
         return(false);
     }
     else
     {
         Stylist newStylist          = (Stylist)otherStylist;
         bool    idEquality          = this.GetId().Equals(newStylist.GetId());
         bool    nameEquality        = this.GetName().Equals(newStylist.GetName());
         bool    informationEquality = this.GetInformation().Equals(newStylist.GetInformation());
         return(idEquality && nameEquality && informationEquality);
     }
 }
Esempio n. 2
0
 public override bool Equals(System.Object secondStylist)
 {
     if (!(secondStylist is Stylist))
     {
         return(false);
     }
     else
     {
         Stylist firstStylist        = (Stylist)secondStylist;
         bool    idEquality          = (this.GetId() == firstStylist.GetId());
         bool    nameEquality        = (this.GetName() == firstStylist.GetName());
         bool    informationEquality = (this.GetInformation() == firstStylist.GetInformation());
         return(idEquality && nameEquality && informationEquality);
     }
 }