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 firstNameEquality = this.GetFirstName() == newStylist.GetFirstName(); bool lastNameEquality = this.GetLastName() == newStylist.GetLastName(); bool expertiseEquality = this.GetExpertise() == newStylist.GetExpertise(); return(idEquality && firstNameEquality && lastNameEquality && expertiseEquality); } }