Ejemplo n.º 1
0
 protected bool Equals(ExplicitTransitionGroupValues other)
 {
     return(Equals(CollisionEnergy, other.CollisionEnergy) &&
            Equals(IonMobility, other.IonMobility) &&
            Equals(IonMobilityHighEnergyOffset, other.IonMobilityHighEnergyOffset) &&
            Equals(IonMobilityUnits, other.IonMobilityUnits) &&
            Equals(CollisionalCrossSectionSqA, other.CollisionalCrossSectionSqA) &&
            Equals(SLens, other.SLens) &&
            Equals(ConeVoltage, other.ConeVoltage) &&
            CompensationVoltage.Equals(other.CompensationVoltage) &&
            DeclusteringPotential.Equals(other.DeclusteringPotential));
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = CollisionEnergy.GetHashCode();
         hashCode = (hashCode * 397) ^ IonMobility.GetHashCode();
         hashCode = (hashCode * 397) ^ IonMobilityHighEnergyOffset.GetHashCode();
         hashCode = (hashCode * 397) ^ IonMobilityUnits.GetHashCode();
         hashCode = (hashCode * 397) ^ CollisionalCrossSectionSqA.GetHashCode();
         hashCode = (hashCode * 397) ^ SLens.GetHashCode();
         hashCode = (hashCode * 397) ^ ConeVoltage.GetHashCode();
         hashCode = (hashCode * 397) ^ DeclusteringPotential.GetHashCode();
         hashCode = (hashCode * 397) ^ CompensationVoltage.GetHashCode();
         return(hashCode);
     }
 }