Esempio n. 1
0
        public override int GetHashCode()
        {
            var hash       = 13;
            var hashFactor = 7;

            hash = hash * hashFactor + AlbumListType.GetHashCode();
            hash = hash * hashFactor + Current.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);
        }