Exemplo n.º 1
0
 public override int GetHashCode()
 {
     return(Surname.GetHashCode()
            ^ Patronimic.GetHashCode() * 17
            ^ Name.GetHashCode() * 19
            * BirthYear.GetHashCode());
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 23;
         hash = hash * 37 + (Number != null ? Number.GetHashCode() : 0);
         hash = hash * 37 + (Name != null ? Name.GetHashCode() : 0);
         hash = hash * 37 + (BirthYear != null ? BirthYear.GetHashCode() : 0);
         hash = hash * 37 + (Height != null ? Height.GetHashCode() : 0);
         hash = hash * 37 + (Role != null ? Role.GetHashCode() : 0);
         return(hash);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 23;
         hash = hash * 37 + Id.GetHashCode();
         hash = hash * 37 + (Number != null ? Number.GetHashCode() : 0);
         hash = hash * 37 + (FullName != null ? FullName.GetHashCode() : 0);
         hash = hash * 37 + (NationalityCode != null ? NationalityCode.GetHashCode() : 0);
         hash = hash * 37 + (Nationality != null ? Nationality.GetHashCode() : 0);
         hash = hash * 37 + (BirthYear != null ? BirthYear.GetHashCode() : 0);
         hash = hash * 37 + (Position != null ? Position.GetHashCode() : 0);
         hash = hash * 37 + (Height != null ? Height.GetHashCode() : 0);
         return(hash);
     }
 }