Example #1
0
        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
        }
Example #2
0
 protected bool Equals(Modification other)
 {
     return(ExplicitMod.Equals(other.ExplicitMod) && MonoisotopicMass.Equals(other.MonoisotopicMass) &&
            AverageMass.Equals(other.AverageMass));
 }