/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ProposalId != null)
         {
             hashCode = hashCode * 59 + ProposalId.GetHashCode();
         }
         if (IssuerId != null)
         {
             hashCode = hashCode * 59 + IssuerId.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         if (PrevProposalId != null)
         {
             hashCode = hashCode * 59 + PrevProposalId.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ProfileId.Length != 0)
            {
                hash ^= ProfileId.GetHashCode();
            }
            if (ProposalId.Length != 0)
            {
                hash ^= ProposalId.GetHashCode();
            }
            if (ResultId.Length != 0)
            {
                hash ^= ResultId.GetHashCode();
            }
            if (matchObject_ != null)
            {
                hash ^= MatchObject.GetHashCode();
            }
            if (Timestamp.Length != 0)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                var hashCode = 41;
                // Suitable nullity checks etc, of course :)
                if (ProposalId != null)
                {
                    hashCode = hashCode * 59 + ProposalId.GetHashCode();
                }
                if (Times != null)
                {
                    hashCode = hashCode * 59 + Times.GetHashCode();
                }

                hashCode = hashCode * 59 + Break.GetHashCode();
                return(hashCode);
            }
        }
Exemple #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OwnerAddress.Length != 0)
            {
                hash ^= OwnerAddress.GetHashCode();
            }
            if (ProposalId != 0L)
            {
                hash ^= ProposalId.GetHashCode();
            }
            if (IsAddApproval != false)
            {
                hash ^= IsAddApproval.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }