private bool Equals(CustomIon other) { var equal = string.Equals(Formula, other.Formula) && string.Equals(Name, other.Name) && MonoisotopicMass.Equals(other.MonoisotopicMass) && AverageMass.Equals(other.AverageMass); return(equal); // For debugging convenience }
protected bool Equals(Modification other) { return(ExplicitMod.Equals(other.ExplicitMod) && MonoisotopicMass.Equals(other.MonoisotopicMass) && AverageMass.Equals(other.AverageMass)); }