Exemplo n.º 1
0
            public override int GetHashCode()
            {
                int hashCode = MsDataFileId.GetHashCode();

                hashCode = hashCode * 31 + PeptideId.GetHashCode();
                hashCode = hashCode * 31 + RetentionTime.GetHashCode();
                return(hashCode);
            }
Exemplo 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);
     }
 }
Exemplo n.º 3
0
            public override bool Equals(object obj)
            {
                if (obj == this)
                {
                    return(true);
                }
                var that = obj as SearchResultKey;

                if (that == null)
                {
                    return(false);
                }
                return(MsDataFileId.Equals(that.MsDataFileId) &&
                       PeptideId.Equals(that.PeptideId) &&
                       RetentionTime.Equals(that.RetentionTime));
            }