protected bool Equals(PeakScoringModelSpec other) { return(base.Equals(other) && UsesDecoys.Equals(other.UsesDecoys) && UsesSecondBest.Equals(other.UsesSecondBest) && AreSameCalculators(PeakFeatureCalculators, other.PeakFeatureCalculators) && Equals(Parameters, other.Parameters)); }
public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ UsesDecoys.GetHashCode(); hashCode = (hashCode * 397) ^ UsesSecondBest.GetHashCode(); hashCode = (hashCode * 397) ^ (Parameters != null ? Parameters.GetHashCode() : 0); return(hashCode); } }