Esempio n. 1
0
 protected bool Equals(PeptideFileAnalysisData other)
 {
     return(MsDataFileId == other.MsDataFileId &&
            ChromatogramStartTime.Equals(other.ChromatogramStartTime) &&
            ChromatogramEndTime.Equals(other.ChromatogramEndTime) &&
            AutoFindPeak.Equals(other.AutoFindPeak) &&
            Peaks.Equals(other.Peaks) &&
            ChromatogramSetId == other.ChromatogramSetId &&
            Equals(PsmTimes, other.PsmTimes) &&
            Equals(ChromatogramSet, other.ChromatogramSet) &&
            Equals(ValidationStatus, other.ValidationStatus) &&
            Equals(Note, other.Note));
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = MsDataFileId.GetHashCode();
         hashCode = (hashCode * 397) ^ ChromatogramStartTime.GetHashCode();
         hashCode = (hashCode * 397) ^ ChromatogramEndTime.GetHashCode();
         hashCode = (hashCode * 397) ^ AutoFindPeak.GetHashCode();
         hashCode = (hashCode * 397) ^ Peaks.GetHashCode();
         hashCode = (hashCode * 397) ^ ChromatogramSetId.GetHashCode();
         hashCode = (hashCode * 397) ^ (null == PsmTimes ? 0 : PsmTimes.GetHashCode());
         hashCode = (hashCode * 397) ^ (null == ChromatogramSet ? 0 : ChromatogramSet.GetHashCode());
         return(hashCode);
     }
 }