public override int GetHashCode() { unchecked { var hashCode = (Peptide != null ? Peptide.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Protein != null ? Protein.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LabelType != null ? LabelType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ MsLevel.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = RegressionWeighting.GetHashCode(); hashCode = (hashCode * 397) ^ RegressionFit.GetHashCode(); hashCode = (hashCode * 397) ^ NormalizationMethod.GetHashCode(); hashCode = (hashCode * 397) ^ MsLevel.GetHashCode(); hashCode = (hashCode * 397) ^ (Units == null ? 0 : Units.GetHashCode()); return(hashCode); } }
/// <summary> /// Compares two objects' values. /// </summary> /// <param name="obj">Other to compare with.</param> /// <returns>True if values are the same, false if not.</returns> public override bool Equals(object obj) { if (obj == null) { return(false); } var other = obj as MSSpectra; if (other == null) { return(false); } if (!GroupId.Equals(other.GroupId)) { return(false); } if (!MsLevel.Equals(other.MsLevel)) { return(false); } if (!PrecursorChargeState.Equals(other.PrecursorChargeState)) { return(false); } if (!PrecursorMz.Equals(other.PrecursorMz)) { return(false); } if (!Net.Equals(other.Net)) { return(false); } if (!Scan.Equals(other.Scan)) { return(false); } if (!TotalIonCurrent.Equals(other.TotalIonCurrent)) { return(false); } if (!CollisionType.Equals(other.CollisionType)) { return(false); } return(true); }
public override int GetHashCode() { unchecked { var hashCode = RegressionWeighting.GetHashCode(); hashCode = (hashCode * 397) ^ RegressionFit.GetHashCode(); hashCode = (hashCode * 397) ^ NormalizationMethod.GetHashCode(); hashCode = (hashCode * 397) ^ MsLevel.GetHashCode(); hashCode = (hashCode * 397) ^ (Units == null ? 0 : Units.GetHashCode()); hashCode = (hashCode * 397) ^ LodCalculation.GetHashCode(); hashCode = (hashCode * 397) ^ MaxLoqBias.GetHashCode(); hashCode = (hashCode * 397) ^ MaxLoqCv.GetHashCode(); hashCode = (hashCode * 397) ^ SimpleRatios.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = MsLevel.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Transitions; hashCode = (hashCode * 397) ^ CountTransitions; hashCode = (hashCode * 397) ^ NormalizeOption.GetHashCode(); hashCode = (hashCode * 397) ^ (Group != null ? Group.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Annotation != null ? Annotation.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)PointsType; hashCode = (hashCode * 397) ^ QValueCutoff.GetHashCode(); hashCode = (hashCode * 397) ^ CVCutoff.GetHashCode(); hashCode = (hashCode * 397) ^ MinimumDetections; return(hashCode); } }