public override int GetHashCode() { int result = 1; result = (result * 397) ^ (AccumulatedCreditUnits != null ? AccumulatedCreditUnits.GetHashCode() : 0); result = (result * 397) ^ (Cgpa != null ? Cgpa.GetHashCode() : 0); result = (result * 397) ^ (Gpa != null ? Gpa.GetHashCode() : 0); result = (result * 397) ^ Id.GetHashCode(); result = (result * 397) ^ (RegistrationApprovalDateTime != null ? RegistrationApprovalDateTime.GetHashCode() : 0); result = (result * 397) ^ RegistrationDateTime.GetHashCode(); result = (result * 397) ^ (SemesterCreditUnits != null ? SemesterCreditUnits.GetHashCode() : 0); result = (result * 397) ^ (StudentRemark != null ? StudentRemark.GetHashCode() : 0); result = (result * 397) ^ (StudentStatus != null ? StudentStatus.GetHashCode() : 0); return(result); }
public override int GetHashCode() { int result = 1; result = (result * 397) ^ CurrentYear.GetHashCode(); result = (result * 397) ^ Id.GetHashCode(); result = (result * 397) ^ (RegistrationNumber != null ? RegistrationNumber.GetHashCode() : 0); result = (result * 397) ^ (Remark != null ? Remark.GetHashCode() : 0); result = (result * 397) ^ StudentStatus.GetHashCode(); result = (result * 397) ^ (StudentNumber != null ? StudentNumber.GetHashCode() : 0); result = (result * 397) ^ CurrentCGPA.GetHashCode(); result = (result * 397) ^ CurrentCTCU.GetHashCode(); result = (result * 397) ^ CurrentAward.GetHashCode(); return(result); }
public override int GetHashCode() { unchecked { // Choose large primes to avoid hashing collisions const int HashingBase = (int)2166136261; const int HashingMultiplier = 16777619; int hash = HashingBase; hash = (hash * HashingMultiplier) ^ (!Object.ReferenceEquals(null, DriverAge) ? DriverAge.GetHashCode() : 0); hash = (hash * HashingMultiplier) ^ (!Object.ReferenceEquals(null, Relationship) ? Relationship.GetHashCode() : 0); hash = (hash * HashingMultiplier) ^ (!Object.ReferenceEquals(null, StudentStatus) ? StudentStatus.GetHashCode() : 0); hash = (hash * HashingMultiplier) ^ (!Object.ReferenceEquals(null, Violations) ? Violations.GetHashCode() : 0); hash = (hash * HashingMultiplier) ^ (!Object.ReferenceEquals(null, DriverGPA) ? DriverGPA.GetHashCode() : 0); hash = (hash * HashingMultiplier) ^ (!Object.ReferenceEquals(null, MaritalStatus) ? MaritalStatus.GetHashCode() : 0); return(hash); } }