Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = MassResolution.GetHashCode();
         hashCode = (hashCode * 397) ^ MinAbundance.GetHashCode();
         hashCode = (hashCode * 397) ^ (IsotopeAbundances != null ? IsotopeAbundances.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 protected bool Equals(Settings other)
 {
     return(MassResolution.Equals(other.MassResolution) && MinAbundance.Equals(other.MinAbundance) &&
            Equals(IsotopeAbundances, other.IsotopeAbundances));
 }