protected bool Equals(TracerDefData other) { return(string.Equals(TracerSymbol, other.TracerSymbol) && string.Equals(Name, other.Name) && DeltaMass.Equals(other.DeltaMass) && AtomCount == other.AtomCount && AtomPercentEnrichment.Equals(other.AtomPercentEnrichment) && InitialEnrichment.Equals(other.InitialEnrichment) && FinalEnrichment.Equals(other.FinalEnrichment) && IsotopesEluteEarlier.Equals(other.IsotopesEluteEarlier) && IsotopesEluteLater.Equals(other.IsotopesEluteLater)); }
public override int GetHashCode() { unchecked { int hashCode = (TracerSymbol != null ? TracerSymbol.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DeltaMass.GetHashCode(); hashCode = (hashCode * 397) ^ AtomCount; hashCode = (hashCode * 397) ^ AtomPercentEnrichment.GetHashCode(); hashCode = (hashCode * 397) ^ InitialEnrichment.GetHashCode(); hashCode = (hashCode * 397) ^ FinalEnrichment.GetHashCode(); hashCode = (hashCode * 397) ^ IsotopesEluteEarlier.GetHashCode(); hashCode = (hashCode * 397) ^ IsotopesEluteLater.GetHashCode(); return(hashCode); } }
public bool EqualPeakPicking(TracerDefData other) { return(EqualMasses(other) && IsotopesEluteEarlier.Equals(other.IsotopesEluteEarlier) && IsotopesEluteLater.Equals(other.IsotopesEluteLater)); }