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 = 1; if (ErrorMsg.Length != 0) { hash ^= ErrorMsg.GetHashCode(); } if (localEndpoint_ != null) { hash ^= LocalEndpoint.GetHashCode(); } hash ^= metaNodes_.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 (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); } }