public override int GetHashCode()
 {
     return
         (FirstName.GetHashCode() ^
          MiddleName.GetHashCode() ^
          LastName.GetHashCode() ^
          ID.GetHashCode() ^
          PermanentAddress.GetHashCode() ^
          Phone.GetHashCode() ^
          Email.GetHashCode() ^
          Payments.GetHashCode() ^
          CustomerType.GetHashCode());
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     return(FirstName.GetHashCode() ^
            MiddleName.GetHashCode() ^
            LastName.GetHashCode() ^
            SSN.GetHashCode() ^
            PermanentAddress.GetHashCode() ^
            MobilePhoneNr.GetHashCode() ^
            Email.GetHashCode() ^
            Course.GetHashCode() ^
            Speciality.GetHashCode() ^
            University.GetHashCode() ^
            Faculty.GetHashCode());
 }
Beispiel #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (FirstName != null ? FirstName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MiddleName != null ? MiddleName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PermanentAddress != null ? PermanentAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MobilePhone != null ? MobilePhone.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)CustomerType;
         return(hashCode);
     }
 }
Beispiel #4
0
 public override int GetHashCode()
 {
     return(FirstName.GetHashCode() ^ MiddleName.GetHashCode() ^ LastName.GetHashCode() ^ Ssn.GetHashCode() ^
            PermanentAddress.GetHashCode() ^ Email.GetHashCode() ^ University.GetHashCode() ^ Faculty.GetHashCode() ^
            Specialty.GetHashCode() ^ Curs.Nume.GetHashCode());
 }
 public override int GetHashCode()
 {
     return(SSN.GetHashCode() ^ PermanentAddress.GetHashCode());
 }