Ejemplo n.º 1
0
 /// <summary>
 /// Determines whether the specified CrossLink Object is equal to the current CrossLink Object.
 /// Equality is determined by Protein, Mass, and ModType.
 /// </summary>
 /// <param name="other">The specified CrossLink Object.</param>
 /// <returns>true if the objects are equal, false otherwise</returns>
 public bool Equals(CrossLink other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other.ProteinId.Equals(this.ProteinId) && other.Mass.Equals(this.Mass) && Equals(other.ModType, this.ModType));
 }
 /// <summary>
 /// Determines whether the specified CrossLink Object is equal to the current CrossLink Object.
 /// Equality is determined by Protein, Mass, and ModType.
 /// </summary>
 /// <param name="other">The specified CrossLink Object.</param>
 /// <returns>true if the objects are equal, false otherwise</returns>
 public bool Equals(CrossLink other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.ProteinId.Equals(this.ProteinId) && other.Mass.Equals(this.Mass) && Equals(other.ModType, this.ModType);
 }