예제 #1
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);
     }
 }
예제 #2
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);
     }
 }