/// <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); } }
/// <summary> /// Object hash code /// </summary> /// <returns></returns> public override int GetHashCode() { unchecked { var hashCode = Name != null?Name.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (Residues != null ? Residues.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (AmbiguousResidues != null ? AmbiguousResidues.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MsLevels != null ? MsLevels.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CVParams != null ? CVParams.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (UserParams != null ? UserParams.GetHashCode() : 0); return(hashCode); } }