Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ PeakCountRatio.GetHashCode();
         result = (result * 397) ^ (RetentionTime.HasValue ? RetentionTime.Value.GetHashCode() : 0);
         result = (result * 397) ^ (StartRetentionTime.HasValue ? StartRetentionTime.Value.GetHashCode() : 0);
         result = (result * 397) ^ (EndRetentionTime.HasValue ? EndRetentionTime.Value.GetHashCode() : 0);
         result = (result * 397) ^ (Fwhm.HasValue ? Fwhm.Value.GetHashCode() : 0);
         result = (result * 397) ^ (Area.HasValue ? Area.Value.GetHashCode() : 0);
         result = (result * 397) ^ (AreaMs1.HasValue ? AreaMs1.Value.GetHashCode() : 0);
         result = (result * 397) ^ (AreaFragment.HasValue ? AreaFragment.Value.GetHashCode() : 0);
         result = (result * 397) ^ (BackgroundArea.HasValue ? BackgroundArea.Value.GetHashCode() : 0);
         result = (result * 397) ^ (BackgroundAreaMs1.HasValue ? BackgroundAreaMs1.Value.GetHashCode() : 0);
         result = (result * 397) ^ (BackgroundAreaFragment.HasValue ? BackgroundAreaFragment.Value.GetHashCode() : 0);
         result = (result * 397) ^ (Height.HasValue ? Height.Value.GetHashCode() : 0);
         result = (result * 397) ^ Ratios.GetHashCodeDeep();
         result = (result * 397) ^ (Truncated.HasValue ? Truncated.Value.GetHashCode() : 0);
         result = (result * 397) ^ Identified.GetHashCode();
         result = (result * 397) ^ (LibraryDotProduct.HasValue ? LibraryDotProduct.Value.GetHashCode() : 0);
         result = (result * 397) ^ (IsotopeDotProduct.HasValue ? IsotopeDotProduct.Value.GetHashCode() : 0);
         result = (result * 397) ^ OptimizationStep;
         result = (result * 397) ^ Annotations.GetHashCode();
         result = (result * 397) ^ UserSet.GetHashCode();
         return(result);
     }
 }
Ejemplo n.º 3
0
 public override int GetHashCode() {
   int hash = 1;
   if (Name.Length != 0) hash ^= Name.GetHashCode();
   hash ^= Annotations.GetHashCode();
   hash ^= endpoints_.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ MSDataFileInfos.GetHashCodeDeep();
         result = (result * 397) ^ Annotations.GetHashCode();
         result = (result * 397) ^ UseForRetentionTimeFilter.GetHashCode();
         result = (result * 397) ^ (OptimizationFunction != null ? OptimizationFunction.GetHashCode() : 0);
         result = (result * 397) ^ _rescoreCount;
         result = (result * 397) ^ AnalyteConcentration.GetHashCode();
         result = (result * 397) ^ SampleType.GetHashCode();
         return(result);
     }
 }
Ejemplo n.º 5
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Name != null?Name.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (int)Type;
                hashCode = (hashCode * 397) ^ (From != null ? From.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (int)Rel;
                hashCode = (hashCode * 397) ^ (int)Scope;
                hashCode = (hashCode * 397) ^ (Default != null ? Default.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Nullable.GetHashCode();
                hashCode = (hashCode * 397) ^ Required.GetHashCode();
                hashCode = (hashCode * 397) ^ Disabled.GetHashCode();
                hashCode = (hashCode * 397) ^ Protected.GetHashCode();
                hashCode = (hashCode * 397) ^ Personal.GetHashCode();
                hashCode = (hashCode * 397) ^ (Annotations != null ? Annotations.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
                return(hashCode);
            }
        }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ (MassError.HasValue ? MassError.Value.GetHashCode() : 0);
         result = (result * 397) ^ RetentionTime.GetHashCode();
         result = (result * 397) ^ StartRetentionTime.GetHashCode();
         result = (result * 397) ^ EndRetentionTime.GetHashCode();
         result = (result * 397) ^ Area.GetHashCode();
         result = (result * 397) ^ BackgroundArea.GetHashCode();
         result = (result * 397) ^ Height.GetHashCode();
         result = (result * 397) ^ Fwhm.GetHashCode();
         result = (result * 397) ^ IsFwhmDegenerate.GetHashCode();
         result = (result * 397) ^ Identified.GetHashCode();
         result = (result * 397) ^ (IsTruncated.HasValue ? IsTruncated.Value.GetHashCode() : 0);
         result = (result * 397) ^ Rank;
         result = (result * 397) ^ Ratios.GetHashCodeDeep();
         result = (result * 397) ^ OptimizationStep.GetHashCode();
         result = (result * 397) ^ Annotations.GetHashCode();
         result = (result * 397) ^ UserSet.GetHashCode();
         return(result);
     }
 }
Ejemplo n.º 7
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);
     }
 }
Ejemplo n.º 8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Home.Length != 0)
            {
                hash ^= Home.GetHashCode();
            }
            hash ^= sources_.GetHashCode();
            if (Version.Length != 0)
            {
                hash ^= Version.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= keywords_.GetHashCode();
            hash ^= maintainers_.GetHashCode();
            if (Engine.Length != 0)
            {
                hash ^= Engine.GetHashCode();
            }
            if (Icon.Length != 0)
            {
                hash ^= Icon.GetHashCode();
            }
            if (ApiVersion.Length != 0)
            {
                hash ^= ApiVersion.GetHashCode();
            }
            if (Condition.Length != 0)
            {
                hash ^= Condition.GetHashCode();
            }
            if (Tags.Length != 0)
            {
                hash ^= Tags.GetHashCode();
            }
            if (AppVersion.Length != 0)
            {
                hash ^= AppVersion.GetHashCode();
            }
            if (Deprecated != false)
            {
                hash ^= Deprecated.GetHashCode();
            }
            if (TillerVersion.Length != 0)
            {
                hash ^= TillerVersion.GetHashCode();
            }
            hash ^= Annotations.GetHashCode();
            if (KubeVersion.Length != 0)
            {
                hash ^= KubeVersion.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }