public override int GetHashCode() { unchecked { var hashCode = MassResolution.GetHashCode(); hashCode = (hashCode * 397) ^ MinAbundance.GetHashCode(); hashCode = (hashCode * 397) ^ (IsotopeAbundances != null ? IsotopeAbundances.GetHashCode() : 0); return(hashCode); } }
protected bool Equals(Settings other) { return(MassResolution.Equals(other.MassResolution) && MinAbundance.Equals(other.MinAbundance) && Equals(IsotopeAbundances, other.IsotopeAbundances)); }