public override int GetHashCode() { int h = 1; h *= 1000003; h ^= TraceId.GetHashCode(); h *= 1000003; h ^= (ParentId == null) ? 0 : ParentId.GetHashCode(); h *= 1000003; h ^= Id.GetHashCode(); h *= 1000003; h ^= Kind.GetHashCode(); h *= 1000003; h ^= (Name == null) ? 0 : Name.GetHashCode(); h *= 1000003; h ^= (int)(h ^ ((Timestamp >> 32) ^ Timestamp)); h *= 1000003; h ^= (int)(h ^ ((Duration >> 32) ^ Duration)); h *= 1000003; h ^= (LocalEndpoint == null) ? 0 : LocalEndpoint.GetHashCode(); h *= 1000003; h ^= (RemoteEndpoint == null) ? 0 : RemoteEndpoint.GetHashCode(); h *= 1000003; h ^= Annotations.GetHashCode(); h *= 1000003; h ^= Tags.GetHashCode(); h *= 1000003; return(h); }
public override int GetHashCode() { int hash = base.GetHashCode(); hash = hash * 31 + (ParentId == null ? 0 : ParentId.GetHashCode()); hash = hash * 31 + ParentType.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ ParentId.GetHashCode(); hashCode = (hashCode * 397) ^ SortKey; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = RootId.GetHashCode(); hashCode = (hashCode * 397) ^ ParentId.GetHashCode(); hashCode = (hashCode * 397) ^ Id.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = ZipkinTraceId.GetHashCode(); hashCode = (hashCode * 397) ^ SpanId.GetHashCode(); hashCode = (hashCode * 397) ^ ParentId.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (ParentId != null ? ParentId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FirstChildId != null ? FirstChildId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (NextSiblingId != null ? NextSiblingId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DataId != null ? DataId.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { return(Tenant.GetHashCode() ^ User.GetHashCode() ^ Id.GetHashCode() ^ ParentId.GetHashCode() ^ Name.GetHashCode() ^ FolderCount.GetHashCode() ^ UnreadCount.GetHashCode() ^ TotalCount.GetHashCode() ^ UnreadChainCount.GetHashCode() ^ TotalChainCount.GetHashCode()); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (Type.Length != 0) { hash ^= Type.GetHashCode(); } if (IsDimension != false) { hash ^= IsDimension.GetHashCode(); } if (IsHidden != false) { hash ^= IsHidden.GetHashCode(); } if (NextSiblingId.Length != 0) { hash ^= NextSiblingId.GetHashCode(); } if (ParentId.Length != 0) { hash ^= ParentId.GetHashCode(); } if (HeaderId.Length != 0) { hash ^= HeaderId.GetHashCode(); } if (format_ != null) { hash ^= Format.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(Id.GetHashCode() ^ ParentId.GetHashCode() ^ OwnerId.GetHashCode()); }
/// <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 (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Instrument != null) { hashCode = hashCode * 59 + Instrument.GetHashCode(); } if (Qty != null) { hashCode = hashCode * 59 + Qty.GetHashCode(); } if (Side != null) { hashCode = hashCode * 59 + Side.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (FilledQty != null) { hashCode = hashCode * 59 + FilledQty.GetHashCode(); } if (AvgPrice != null) { hashCode = hashCode * 59 + AvgPrice.GetHashCode(); } if (LimitPrice != null) { hashCode = hashCode * 59 + LimitPrice.GetHashCode(); } if (StopPrice != null) { hashCode = hashCode * 59 + StopPrice.GetHashCode(); } if (ParentId != null) { hashCode = hashCode * 59 + ParentId.GetHashCode(); } if (ParentType != null) { hashCode = hashCode * 59 + ParentType.GetHashCode(); } if (Duration != null) { hashCode = hashCode * 59 + Duration.GetHashCode(); } if (Status != null) { hashCode = hashCode * 59 + Status.GetHashCode(); } return(hashCode); } }
/// <summary> /// 获取哈希码。 /// </summary> /// <returns>返回 32 位整数。</returns> public override int GetHashCode() => ParentId.GetHashCode() ^ Name.CompatibleGetHashCode();
public override int GetHashCode() { return(ParentId != null ? ParentId.GetHashCode() : 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 (TraceId != null) { hashCode = hashCode * 59 + TraceId.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (ParentId != null) { hashCode = hashCode * 59 + ParentId.GetHashCode(); } if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Kind != null) { hashCode = hashCode * 59 + Kind.GetHashCode(); } if (Timestamp != null) { hashCode = hashCode * 59 + Timestamp.GetHashCode(); } if (Duration != null) { hashCode = hashCode * 59 + Duration.GetHashCode(); } if (Debug != null) { hashCode = hashCode * 59 + Debug.GetHashCode(); } if (Shared != null) { hashCode = hashCode * 59 + Shared.GetHashCode(); } if (LocalEndpoint != null) { hashCode = hashCode * 59 + LocalEndpoint.GetHashCode(); } if (RemoteEndpoint != null) { hashCode = hashCode * 59 + RemoteEndpoint.GetHashCode(); } if (Annotations != null) { hashCode = hashCode * 59 + Annotations.GetHashCode(); } if (Tags != null) { hashCode = hashCode * 59 + Tags.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { return(ParentId.GetHashCode()); }