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)); }
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); }
/// <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); }
public bool Equals(MSDataScan other) { return(Scan.Equals(other)); }