public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Department; hashCode = (hashCode * 397) ^ (Specialty != null ? Specialty.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)EducationForm; hashCode = (hashCode * 397) ^ Course; hashCode = (hashCode * 397) ^ Semester; hashCode = (hashCode * 397) ^ НедельВСем; hashCode = (hashCode * 397) ^ (Flow != null ? Flow.GetHashCode() : 0); hashCode = (hashCode * 397) ^ GroupsCount; hashCode = (hashCode * 397) ^ SubgroupsCount; hashCode = (hashCode * 397) ^ ГруппВПотоке; hashCode = (hashCode * 397) ^ (Численность != null ? Численность.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Трудоемкость.GetHashCode(); hashCode = (hashCode * 397) ^ ТрудоемкостьГода.GetHashCode(); hashCode = (hashCode * 397) ^ (Lectures != null ? Lectures.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Laboratory != null ? Laboratory.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Practical != null ? Practical.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Exam.GetHashCode(); hashCode = (hashCode * 397) ^ Test.GetHashCode(); hashCode = (hashCode * 397) ^ (int)CourseDesigning; hashCode = (hashCode * 397) ^ (PlannedLoad != null ? PlannedLoad.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ Lectures.GetHashCode(); hashCode = (hashCode * 397) ^ Laboratory.GetHashCode(); hashCode = (hashCode * 397) ^ Practical.GetHashCode(); hashCode = (hashCode * 397) ^ Test.GetHashCode(); hashCode = (hashCode * 397) ^ Consultations.GetHashCode(); hashCode = (hashCode * 397) ^ Exams.GetHashCode(); hashCode = (hashCode * 397) ^ Nir.GetHashCode(); hashCode = (hashCode * 397) ^ CourseDesigning.GetHashCode(); hashCode = (hashCode * 397) ^ Vkr.GetHashCode(); hashCode = (hashCode * 397) ^ Gek.GetHashCode(); hashCode = (hashCode * 397) ^ Gak.GetHashCode(); hashCode = (hashCode * 397) ^ Rma.GetHashCode(); hashCode = (hashCode * 397) ^ Rmp.GetHashCode(); return(hashCode); } }