Exemple #1
0
 public bool Equals(Protein_Modification other)
 {
     if (other == null)
     {
         return(false);
     }
     return(this.mod_site.Equals(other.mod_site));  // && this.mod_index.Equals(other.mod_index)
 }
Exemple #2
0
        int IComparable.CompareTo(Object obj)
        {
            Protein_Modification temp = (Protein_Modification)obj;

            if (this.mod_site < temp.mod_site)
            {
                return(-1);
            }
            else if (this.mod_site > temp.mod_site)
            {
                return(1);
            }
            return(0);
        }
Exemple #3
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            Protein_Modification temp = obj as Protein_Modification;

            if (temp == null)
            {
                return(false);
            }
            else
            {
                return(Equals(temp));
            }
        }