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);
            }
Beispiel #2
0
                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);
                }