public bool EqualMasses(TracerDefData other) { return(TracerSymbol.Equals(other.TracerSymbol) && DeltaMass.Equals(other.DeltaMass) && AtomCount.Equals(other.AtomCount) && AtomPercentEnrichment.Equals(other.AtomPercentEnrichment)); }
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); } }