Ejemplo n.º 1
0
 public bool Equals(IsotopeEnrichmentItem other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.IsotopeSymbol, IsotopeSymbol) &&
            other.AtomPercentEnrichment.Equals(AtomPercentEnrichment));
 }
Ejemplo n.º 2
0
 public IsotopeEnrichments ChangeEnrichment(IsotopeEnrichmentItem item)
 {
     return(ChangeProp(ImClone(this), im => im._isotopeEnrichments = MakeReadOnly(im.Enrichments.Select(e =>
                                                                                                        Equals(e.IsotopeSymbol, item.IsotopeSymbol) ? item : e))));
 }
Ejemplo n.º 3
0
 public IsotopeEnrichments ChangeEnrichment(IsotopeEnrichmentItem item)
 {
     return ChangeProp(ImClone(this), im => im._isotopeEnrichments = MakeReadOnly(im.Enrichments.Select(e =>
         Equals(e.IsotopeSymbol, item.IsotopeSymbol) ? item : e)));
 }
Ejemplo n.º 4
0
 public bool Equals(IsotopeEnrichmentItem other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.IsotopeSymbol, IsotopeSymbol) &&
         other.AtomPercentEnrichment.Equals(AtomPercentEnrichment);
 }