public override int GetHashCode() { unchecked { var hashCode = ModifiedSequence.GetHashCode(); hashCode = (hashCode * 397) ^ Charge; return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (ModifiedSequence != null ? ModifiedSequence.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PrecursorMz.GetHashCode(); hashCode = (hashCode * 397) ^ PrecursorCharge.GetHashCode(); return(hashCode); } }