Exemplo n.º 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);
 }