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)); }
public IsotopeEnrichments ChangeEnrichment(IsotopeEnrichmentItem item) { return(ChangeProp(ImClone(this), im => im._isotopeEnrichments = MakeReadOnly(im.Enrichments.Select(e => Equals(e.IsotopeSymbol, item.IsotopeSymbol) ? item : e)))); }
public IsotopeEnrichments ChangeEnrichment(IsotopeEnrichmentItem item) { return ChangeProp(ImClone(this), im => im._isotopeEnrichments = MakeReadOnly(im.Enrichments.Select(e => Equals(e.IsotopeSymbol, item.IsotopeSymbol) ? item : e))); }
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); }