示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Institution != null ? Institution.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Area != null ? Area.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StudyType != null ? StudyType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Gpa != null ? Gpa.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Courses != null ? Courses.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Start.GetHashCode();
         hashCode = (hashCode * 397) ^ End.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
        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);
        }