Exemplo n.º 1
0
 public override bool Equals(System.Object otherSpecialty)
 {
     if (!(otherSpecialty is Specialty))
     {
         return(false);
     }
     else
     {
         Specialty newSpecialty    = (Specialty)otherSpecialty;
         bool      idEquality      = this.GetId().Equals(newSpecialty.GetId());
         bool      serviceEquality = this.GetService().Equals(newSpecialty.GetService());
         return(idEquality && serviceEquality);
     }
 }