Пример #1
0
 public bool Equals(ChemicalFormula other)
 {
     if (other == null)
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (!MonoisotopicMass.MassEquals(other.MonoisotopicMass))
     {
         return(false);
     }
     if (!AverageMass.MassEquals(other.AverageMass))
     {
         return(false);
     }
     return(true);
 }
Пример #2
0
 public bool Equals(Fragment other)
 {
     return(Type.Equals(other.Type) && Number.Equals(other.Number) && MonoisotopicMass.MassEquals(other.MonoisotopicMass));
 }