Exemplo n.º 1
0
        /// <summary>
        ///     Object hash code
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = DBSequences != null?DBSequences.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Peptides != null ? Peptides.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (PeptideEvidences != null ? PeptideEvidences.GetHashCode() : 0);
                return(hashCode);
            }
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = DbWorkspaceId.GetHashCode();
         hashCode = (hashCode * 397) ^ LastChangeLogId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Peptides != null ? Peptides.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MsDataFiles != null ? MsDataFiles.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PeptideAnalyses != null ? PeptideAnalyses.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TracerDefs != null ? TracerDefs.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Settings != null ? Settings.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Modifications != null ? Modifications.GetHashCode() : 0);
         return(hashCode);
     }
 }