public override bool Equals(object o)
        {
            ModificationWithLocation m = o as ModificationWithLocation;

            return(m != null &&
                   base.Equals(m) &&
                   motif.Equals(m.motif) &&
                   terminusLocalization == m.terminusLocalization);
        }
Example #2
0
        public override bool Equals(object o)
        {
            ModificationWithLocation m = o as ModificationWithLocation;

            return(m == null ? false :

                   base.Equals(m)

                   && (this.motif == null && m.motif == null ||
                       this.motif != null && m.motif != null &&
                       this.motif.Motif == m.motif.Motif)

                   && this.modificationType == m.modificationType &&
                   this.terminusLocalization == m.terminusLocalization);
        }