コード例 #1
0
ファイル: IsotopeEnrichments.cs プロジェクト: zrolfs/pwiz
 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
ファイル: IsotopeEnrichments.cs プロジェクト: zrolfs/pwiz
 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);
 }