コード例 #1
0
ファイル: DataModelPost.cs プロジェクト: Devxenderr/SocialTr
        public override int GetHashCode()
        {
            var hashCode = 175731186;

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

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

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

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

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

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

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

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

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

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

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

            hashCode = hashCode * -1521134295 + IsQuoteFavorite.GetHashCode();
            hashCode = hashCode * -1521134295 + CommentCount.GetHashCode();
            hashCode = hashCode * -1521134295 + LikeCount.GetHashCode();
            hashCode = hashCode * -1521134295 + IsLiked.GetHashCode();
            return(hashCode);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            var hashCode = -1499811332;

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

            hashCode = hashCode * -1521134295 + CountLikes.GetHashCode();
            hashCode = hashCode * -1521134295 + IsLiked.GetHashCode();
            return(hashCode);
        }