Esempio n. 1
0
 /// <summary>
 ///     Object hash code
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AvgMassDelta.GetHashCode();
         hashCode = (hashCode * 397) ^ Location;
         hashCode = (hashCode * 397) ^ MonoisotopicMassDelta.GetHashCode();
         hashCode = (hashCode * 397) ^ (OriginalResidue != null ? OriginalResidue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReplacementResidue != null ? ReplacementResidue.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 2
0
 /// <summary>
 ///     Object hash code
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AvgMassDelta.GetHashCode();
         hashCode = (hashCode * 397) ^ MonoisotopicMassDelta.GetHashCode();
         hashCode = (hashCode * 397) ^ Location;
         hashCode = (hashCode * 397) ^ (Residues != null ? Residues.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CVParams != null ? CVParams.GetHashCode() : 0);
         return(hashCode);
     }
 }