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