コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ (PeptideModSeq != null ? PeptideModSeq.GetHashCode() : 0);
         result = (result * 397) ^ CollisionalCrossSection.GetHashCode();
         result = (result * 397) ^ HighEnergyDriftTimeOffsetMsec.GetHashCode();
         return(result);
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ (ModifiedTarget != null ? ModifiedTarget.GetHashCode() : 0);
         result = (result * 397) ^ CollisionalCrossSection.GetHashCode();
         result = (result * 397) ^ HighEnergyDriftTimeOffsetMsec.GetHashCode();
         result = (result * 397) ^ _adduct.GetHashCode();
         return(result);
     }
 }
コード例 #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IonMobilityMS1.GetHashCode();
         hashCode = (hashCode * 397) ^ IonMobilityFragment.GetHashCode();
         hashCode = (hashCode * 397) ^ IonMobilityUnits.GetHashCode();
         hashCode = (hashCode * 397) ^ CollisionalCrossSection.GetHashCode();
         hashCode = (hashCode * 397) ^ IonMobilityWindow.GetHashCode();
         return(hashCode);
     }
 }
コード例 #4
0
 public bool Equals(TransitionGroupIonMobilityInfo other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(IonMobilityMS1.Equals(other.IonMobilityMS1) &&
            IonMobilityFragment.Equals(other.IonMobilityFragment) &&
            CollisionalCrossSection.Equals(other.CollisionalCrossSection) &&
            IonMobilityWindow.Equals(other.IonMobilityWindow) &&
            IonMobilityUnits.Equals(other.IonMobilityUnits));
 }