Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Family != null ? Family.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Surname != null ? Surname.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Pol;
         hashCode = (hashCode * 397) ^ DateRo.GetHashCode();
         hashCode = (hashCode * 397) ^ DateSm.GetHashCode();
         hashCode = (hashCode * 397) ^ (Dop != null ? Dop.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Family != null ? Family.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Surname != null ? Surname.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Pol;
         hashCode = (hashCode * 397) ^ DateRo.GetHashCode();
         hashCode = (hashCode * 397) ^ DateSm.GetHashCode();
         hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TypeUl != null ? TypeUl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Street != null ? Street.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (House != null ? House.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Apartament != null ? Apartament.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Housing != null ? Housing.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Phone != null ? Phone.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PlaceWork != null ? PlaceWork.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Dop != null ? Dop.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateExit.GetHashCode();
         return(hashCode);
     }
 }