Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (WeatherId != 0)
            {
                hash ^= WeatherId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (VisitingNum != 0)
            {
                hash ^= VisitingNum.GetHashCode();
            }
            if (Best != 0)
            {
                hash ^= Best.GetHashCode();
            }
            if (Better != 0)
            {
                hash ^= Better.GetHashCode();
            }
            if (Same != 0)
            {
                hash ^= Same.GetHashCode();
            }
            return(hash);
        }