Esempio n. 1
0
 public bool EqualMasses(TracerDefData other)
 {
     return(TracerSymbol.Equals(other.TracerSymbol) &&
            DeltaMass.Equals(other.DeltaMass) &&
            AtomCount.Equals(other.AtomCount) &&
            AtomPercentEnrichment.Equals(other.AtomPercentEnrichment));
 }
Esempio n. 2
0
 public void WriteXml(XmlWriter writer)
 {
     // Write tag attributes
     writer.WriteAttribute(ATTR.symbol, IsotopeSymbol);
     // Write element string
     writer.WriteString(AtomPercentEnrichment.ToString(CultureInfo.InvariantCulture));
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = IsotopeSymbol.GetHashCode();
         result = (result * 397) ^ AtomPercentEnrichment.GetHashCode();
         return(result);
     }
 }
Esempio n. 4
0
 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));
 }
Esempio n. 5
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);
     }
 }