public override int GetHashCode()
        {
            int hashCode = 2146425462;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + SetID.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <ObservableCollection <IndividualCardModel> > .Default.GetHashCode(FlashcardCollection);

            hashCode = hashCode * -1521134295 + LearningProgress.GetHashCode();
            hashCode = hashCode * -1521134295 + NumTimesReviewed.GetHashCode();
            hashCode = hashCode * -1521134295 + WhenCreated.GetHashCode();
            hashCode = hashCode * -1521134295 + WhenLastReviewedUTC.GetHashCode();
            hashCode = hashCode * -1521134295 + IsStarred.GetHashCode();
            return(hashCode);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BookID.Length != 0)
            {
                hash ^= BookID.GetHashCode();
            }
            if (Ticket.Length != 0)
            {
                hash ^= Ticket.GetHashCode();
            }
            if (SetID != 0)
            {
                hash ^= SetID.GetHashCode();
            }
            hash ^= lives_.GetHashCode();
            if (WssProxy.Length != 0)
            {
                hash ^= WssProxy.GetHashCode();
            }
            return(hash);
        }