예제 #1
0
 public override bool Equals(object obj)
 {
     if (!(obj is TrainerContact trainerContact))
     {
         return(false);
     }
     return(TrainerContactPK.Equals(trainerContact.TrainerContactPK));
 }
예제 #2
0
 public override int GetHashCode()
 {
     return(Trainer.GetHashCode() + SocialNetwork.GetHashCode() + TrainerContactPK.GetHashCode() + Link.GetHashCode());
 }