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); }
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); }
/// <summary> /// 获取哈希值 /// </summary> /// <returns>返回哈希值</returns> public override int GetHashCode() { return(base.GetHashCode() | EndValue.GetHashCode()); }