/// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = FilenamePrefix.GetHashCode();
         hashCode = (hashCode * 397) ^ DaysFromUploadingToHiding.GetHashCode();
         hashCode = (hashCode * 397) ^ DaysFromHidingToDeleting.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns a hash code for this <see cref="LifecycleRule" />.
        /// </summary>
        public override int GetHashCode()
        {
            var hashCode = 1793785783;

            hashCode = hashCode * -1521134295 + DaysFromHidingToDeleting.GetHashCode();
            hashCode = hashCode * -1521134295 + DaysFromUploadingToHiding.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FileNamePrefix);

            return(hashCode);
        }