public override int GetHashCode() { int hash = 1; if (UserId != 0) { hash ^= UserId.GetHashCode(); } if (ActivityId != 0) { hash ^= ActivityId.GetHashCode(); } if (MusicId != 0) { hash ^= MusicId.GetHashCode(); } if (DiffType != 0) { hash ^= DiffType.GetHashCode(); } if (MaxScore != 0) { hash ^= MaxScore.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hashCode = -760939623; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(line); hashCode = hashCode * -1521134295 + EqualityComparer <Lines> .Default.GetHashCode(subLines); hashCode = hashCode * -1521134295 + state.GetHashCode(); return(hashCode); }