public override int GetHashCode() { int hash = StudyEventsTimeTableKindCode.GetHashCode() ^ Start.GetHashCode() ^ End.GetHashCode() ^ Subject.GetHashCode(); foreach (EventLocation sel in EventLocations) { hash ^= sel.Location.Oid.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = StudyEventsTimeTableKindCode.GetHashCode() ^ Start.GetHashCode() ^ End.GetHashCode() ^ Subject.GetHashCode(); foreach (EventLocation sel in EventLocations) { hash ^= sel.Location.Oid.GetHashCode(); } foreach (ContingentUnit cu in ContingentUnits) { if (cu != null) { hash ^= cu.Oid.GetHashCode(); } } return(hash); }