示例#1
0
 public virtual bool EqualsIgnoreId(DbPrecursorAndIonMobility other)
 {
     return(DbPrecursorIon.EqualsIgnoreId(other.DbPrecursorIon) &&
            CollisionalCrossSectionSqA.Equals(other.CollisionalCrossSectionSqA) &&
            IonMobility.Equals(other.IonMobility) &&
            HighEnergyIonMobilityOffset.Equals(other.HighEnergyIonMobilityOffset) &&
            IonMobilityUnits == other.IonMobilityUnits);
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = IonMobility.GetHashCode();
         hashCode = (hashCode * 397) ^ IonMobilityUnits.GetHashCode();
         hashCode = (hashCode * 397) ^ CollisionalCrossSectionSqA.GetHashCode();
         return(hashCode);
     }
 }
示例#3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ DbPrecursorIon.GetHashCode();
         hashCode = (hashCode * 397) ^ CollisionalCrossSectionSqA.GetHashCode();
         hashCode = (hashCode * 397) ^ IonMobility.GetHashCode();
         hashCode = (hashCode * 397) ^ HighEnergyIonMobilityOffset.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)IonMobilityUnits;
         return(hashCode);
     }
 }
示例#4
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);
     }
 }
示例#5
0
        public virtual int CompareTo(object obj)
        {
            if (ReferenceEquals(this, obj))
            {
                return(0);
            }
            if (ReferenceEquals(null, obj))
            {
                return(1);
            }
            if (!(obj is DbPrecursorAndIonMobility other))
            {
                return(1);
            }
            var dbPrecursorIonComparison = Comparer <DbPrecursorIon> .Default.Compare(DbPrecursorIon, other.DbPrecursorIon);

            if (dbPrecursorIonComparison != 0)
            {
                return(dbPrecursorIonComparison);
            }
            var collisionalCrossSectionSqAComparison = CollisionalCrossSectionSqA.CompareTo(other.CollisionalCrossSectionSqA);

            if (collisionalCrossSectionSqAComparison != 0)
            {
                return(collisionalCrossSectionSqAComparison);
            }
            var ionMobilityUnitsComparison = IonMobilityUnits.CompareTo(other.IonMobilityUnits);

            if (ionMobilityUnitsComparison != 0)
            {
                return(ionMobilityUnitsComparison);
            }
            var ionMobilityComparison = IonMobility.CompareTo(other.IonMobility);

            if (ionMobilityComparison != 0)
            {
                return(ionMobilityComparison);
            }
            return(HighEnergyIonMobilityOffset.CompareTo(other.HighEnergyIonMobilityOffset));
        }