コード例 #1
0
        public override bool Equals(object obj)
        {
            var other = (DatabaseSearchSequence)obj;

            if (other == null)
            {
                return(false);
            }
            if (!Id.Equals(other.Id))
            {
                return(false);
            }
            if (!GroupId.Equals(other.GroupId))
            {
                return(false);
            }
            if (!Sequence.Equals(other.Sequence))
            {
                return(false);
            }
            if (!Scan.Equals(other.Scan))
            {
                return(false);
            }
            if (!Score.Equals(other.Score))
            {
                return(false);
            }
            return(Score.Equals(other.Score));
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            var other = obj as ScanSummary;

            if (other == null)
            {
                return(false);
            }
            if (DatasetId.Equals(other.DatasetId) && Scan.Equals(other.Scan))
            {
                return(true);
            }
            return(false);
        }
コード例 #3
0
        /// <summary>
        /// Compares two objects' values.
        /// </summary>
        /// <param name="obj">Other to compare with.</param>
        /// <returns>True if values are the same, false if not.</returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            var other = obj as MSSpectra;

            if (other == null)
            {
                return(false);
            }

            if (!GroupId.Equals(other.GroupId))
            {
                return(false);
            }
            if (!MsLevel.Equals(other.MsLevel))
            {
                return(false);
            }
            if (!PrecursorChargeState.Equals(other.PrecursorChargeState))
            {
                return(false);
            }
            if (!PrecursorMz.Equals(other.PrecursorMz))
            {
                return(false);
            }
            if (!Net.Equals(other.Net))
            {
                return(false);
            }
            if (!Scan.Equals(other.Scan))
            {
                return(false);
            }
            if (!TotalIonCurrent.Equals(other.TotalIonCurrent))
            {
                return(false);
            }
            if (!CollisionType.Equals(other.CollisionType))
            {
                return(false);
            }
            return(true);
        }
コード例 #4
0
 public bool Equals(MSDataScan other)
 {
     return(Scan.Equals(other));
 }