Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Mz.GetHashCode() * 397) ^ RetentionTime.GetHashCode());
     }
 }
Exemple #2
0
        public override int GetHashCode()
        {
            var hashCode = StringComparer.OrdinalIgnoreCase.GetHashCode(Name);

            hashCode = (hashCode * 397) ^ RetentionTime.GetHashCode();
            hashCode = (hashCode * 397) ^ AggregationTime.GetHashCode();
            return(hashCode);
        }
Exemple #3
0
        /// <summary>
        /// Generates a hash code.
        /// </summary>
        /// <returns>Hash code based on stored data.</returns>
        public override int GetHashCode()
        {
            var hashCode =
                PrecursorMz.GetHashCode() ^
                PrecursorChargeState.GetHashCode() ^
                Scan.GetHashCode() ^
                Id.GetHashCode() ^
                GroupId.GetHashCode() ^
                TotalIonCurrent.GetHashCode() ^
                RetentionTime.GetHashCode();

            return(hashCode);
        }
Exemple #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = base.GetHashCode();
         result = (result * 397) ^ ResultsFile.GetHashCode();
         result = (result * 397) ^ PrecursorMz.GetHashCode();
         result = (result * 397) ^ MatchedPrecursorMz.GetHashCode();
         result = (result * 397) ^ RetentionTime.GetHashCode();
         result = (result * 397) ^ MzBytes.GetHashCode();
         result = (result * 397) ^ IntensityBytes.GetHashCode();
         return(result);
     }
 }
Exemple #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = base.GetHashCode();
         result = (result * 397) ^ ResultsFile.GetHashCode();
         result = (result * 397) ^ PrecursorMz.GetHashCode();
         result = (result * 397) ^ MatchedPrecursorMz.GetHashCode();
         result = (result * 397) ^ (DocumentPeptide == null ? 0 : DocumentPeptide.GetHashCode());
         result = (result * 397) ^ DocumentPrecursorCharge.GetHashCode();
         result = (result * 397) ^ RetentionTime.GetHashCode();
         result = (result * 397) ^ MzBytes.GetHashCode();
         result = (result * 397) ^ IntensityBytes.GetHashCode();
         return(result);
     }
 }
 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);
     }
 }