public override int GetHashCode() { var hashCode = Charge; hashCode = (hashCode * 397) ^ NeutralPeptideMass.GetHashCode(); hashCode = (hashCode * 397) ^ SegmentIndex; return(hashCode); }
protected bool Equals(Partition other) { return(Charge == other.Charge && NeutralPeptideMass.Equals(other.NeutralPeptideMass) && SegmentIndex == other.SegmentIndex); }