コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TradeId.Length != 0)
            {
                hash ^= TradeId.GetHashCode();
            }
            if (OtherPartyUuid.Length != 0)
            {
                hash ^= OtherPartyUuid.GetHashCode();
            }
            hash ^= items_.GetHashCode();
            hash ^= otherPartyItems_.GetHashCode();
            if (Accepted != false)
            {
                hash ^= Accepted.GetHashCode();
            }
            if (OtherPartyAccepted != false)
            {
                hash ^= OtherPartyAccepted.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SessionId.Length != 0)
            {
                hash ^= SessionId.GetHashCode();
            }
            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (TradeId.Length != 0)
            {
                hash ^= TradeId.GetHashCode();
            }
            if (Accepted != false)
            {
                hash ^= Accepted.GetHashCode();
            }
            if (OtherPartyAccepted != false)
            {
                hash ^= OtherPartyAccepted.GetHashCode();
            }
            if (Cancelled != false)
            {
                hash ^= Cancelled.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
 /// <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 (Accepted != null)
         {
             hashCode = hashCode * 59 + Accepted.GetHashCode();
         }
         if (Ranked != null)
         {
             hashCode = hashCode * 59 + Ranked.GetHashCode();
         }
         return(hashCode);
     }
 }
コード例 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ RoundId;
         hashCode = (hashCode * 397) ^ (FighterId != null ? FighterId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (JudgeId != null ? JudgeId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Points;
         hashCode = (hashCode * 397) ^ FightId;
         hashCode = (hashCode * 397) ^ Cautions;
         hashCode = (hashCode * 397) ^ Warnings;
         hashCode = (hashCode * 397) ^ KnockDown;
         hashCode = (hashCode * 397) ^ J;
         hashCode = (hashCode * 397) ^ X;
         hashCode = (hashCode * 397) ^ (Injury != null ? Injury.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ InjuryTime.GetHashCode();
         hashCode = (hashCode * 397) ^ Accepted.GetHashCode();
         hashCode = (hashCode * 397) ^ (Fight != null ? Fight.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Judge != null ? Judge.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Fighter != null ? Fighter.GetHashCode() : 0);
         return(hashCode);
     }
 }