Exemple #1
0
        public override int GetHashCode()
        {
            var hashCode = 505786036;

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

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

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

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

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

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

            hashCode = hashCode * -1521134295 + EqualityComparer <List <DifficultyStats> > .Default.GetHashCode(Diffs);

            hashCode = hashCode * -1521134295 + Bpm.GetHashCode();
            hashCode = hashCode * -1521134295 + PlayedCount.GetHashCode();
            hashCode = hashCode * -1521134295 + Upvotes.GetHashCode();
            hashCode = hashCode * -1521134295 + Downvotes.GetHashCode();
            hashCode = hashCode * -1521134295 + Heat.GetHashCode();
            hashCode = hashCode * -1521134295 + Rating.GetHashCode();
            return(hashCode);
        }