示例#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));
 }
示例#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))));
 }
示例#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)));
 }
示例#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);
 }