public override int GetHashCode() { int hashCode = 849365176; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Term); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Definition); hashCode = hashCode * -1521134295 + CardID.GetHashCode(); hashCode = hashCode * -1521134295 + IsLearned.GetHashCode(); hashCode = hashCode * -1521134295 + IsStarred.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hash = 1; if (CardID != 0) { hash ^= CardID.GetHashCode(); } if (TargetID != 0) { hash ^= TargetID.GetHashCode(); } if (Extend != 0) { hash ^= Extend.GetHashCode(); } return(hash); }