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); }
public bool Equals(Fragment other) { return(Type.Equals(other.Type) && Number.Equals(other.Number) && MonoisotopicMass.MassEquals(other.MonoisotopicMass)); }