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

            if (BadgeType != 0)
            {
                hash ^= BadgeType.GetHashCode();
            }
            if (Rank != 0)
            {
                hash ^= Rank.GetHashCode();
            }
            if (StartValue != 0)
            {
                hash ^= StartValue.GetHashCode();
            }
            if (EndValue != 0)
            {
                hash ^= EndValue.GetHashCode();
            }
            if (CurrentValue != 0D)
            {
                hash ^= CurrentValue.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BadgeType != 0)
            {
                hash ^= BadgeType.GetHashCode();
            }
            if (Rank != 0)
            {
                hash ^= Rank.GetHashCode();
            }
            if (StartValue != 0)
            {
                hash ^= StartValue.GetHashCode();
            }
            if (EndValue != 0)
            {
                hash ^= EndValue.GetHashCode();
            }
            if (CurrentValue != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CurrentValue);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #3
0
 /// <summary>
 /// 获取哈希值
 /// </summary>
 /// <returns>返回哈希值</returns>
 public override int GetHashCode()
 {
     return(base.GetHashCode() | StartValue.GetHashCode() | EndValue.GetHashCode());
 }