Exemplo n.º 1
0
 //Overrides
 public override bool Equals(System.Object client)
 {
     if (!(client is Client))
     {
         return(false);
     }
     else
     {
         Client newClient       = (Client)client;
         bool   nameEquality    = (newClient.GetName() == this.GetName());
         bool   idEquality      = (newClient.GetId() == this.GetId());
         bool   stylistEquality = (newClient.GetStylist() == this.GetStylist());
         return(idEquality && nameEquality && stylistEquality);
     }
 }