Exemple #1
0
        public override int GetHashCode()
        {
            var hash = HashSeed;

            hash = hash * HashFactor + typeof(Search2ActivityDelegate <TImageType>).GetHashCode();

            if (Query != null)
            {
                hash = hash * HashFactor + Query.GetHashCode();
            }

            if (MusicFolderId != null)
            {
                hash = hash * HashFactor + MusicFolderId.GetHashCode();
            }

            if (ArtistCount.HasValue)
            {
                hash = hash * HashFactor + ArtistCount.Value.GetHashCode();
            }

            if (ArtistOffset.HasValue)
            {
                hash = hash * HashFactor + ArtistOffset.Value.GetHashCode();
            }

            if (AlbumCount.HasValue)
            {
                hash = hash * HashFactor + AlbumCount.Value.GetHashCode();
            }

            if (AlbumOffset.HasValue)
            {
                hash = hash * HashFactor + AlbumOffset.Value.GetHashCode();
            }

            if (SongCount.HasValue)
            {
                hash = hash * HashFactor + SongCount.Value.GetHashCode();
            }

            if (SongOffset.HasValue)
            {
                hash = hash * HashFactor + SongOffset.Value.GetHashCode();
            }

            return(hash);
        }
        public override int GetHashCode()
        {
            var hash = HashSeed;

            hash = hash * HashFactor + typeof(AlbumListActivityDelegate <TImageType>).GetHashCode();

            hash = hash * HashFactor + AlbumListType.GetHashCode();

            if (Size != null)
            {
                hash = hash * HashFactor + Size.GetHashCode();
            }

            if (Offset != null)
            {
                hash = hash * HashFactor + Offset.GetHashCode();
            }

            if (FromYear != null)
            {
                hash = hash * HashFactor + FromYear.GetHashCode();
            }

            if (ToYear != null)
            {
                hash = hash * HashFactor + ToYear.GetHashCode();
            }

            if (Genre != null)
            {
                hash = hash * HashFactor + Genre.GetHashCode();
            }

            if (MusicFolderId != null)
            {
                hash = hash * HashFactor + MusicFolderId.GetHashCode();
            }

            return(hash);
        }