예제 #1
0
 public override bool Equals(System.Object otherStylist)
 {
     if (!(otherStylist is Stylist))
     {
         return(false);
     }
     else
     {
         Stylist newStylist          = (Stylist)otherStylist;
         bool    nameEquality        = this.GetName().Equals(newStylist.GetName());
         bool    idEquality          = this.GetId().Equals(newStylist.GetId());
         bool    descriptionEquality = this.GetDescription().Equals(newStylist.GetDescription());
         bool    timestampEquality   = this.GetTimestamp().Equals(newStylist.GetTimestamp());
         if (nameEquality == true && idEquality == true && descriptionEquality == true)
         {
             return(true);
         }
         return(false);
     }
 }