Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = -639410138;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Filename);

            hashCode = hashCode * -1521134295 + Filesize.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ContentType);

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

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

            hashCode = hashCode * -1521134295 + EqualityComparer <IdentifiableName> .Default.GetHashCode(Author);

            hashCode = hashCode * -1521134295 + EqualityComparer <DateTime?> .Default.GetHashCode(CreatedOn);

            hashCode = hashCode * -1521134295 + EqualityComparer <IdentifiableName> .Default.GetHashCode(Version);

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

            hashCode = hashCode * -1521134295 + Downloads.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Token);

            return(hashCode);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            var hashCode = 1588817190;

            hashCode = hashCode * -1521134295 + Filesize.GetHashCode();
            hashCode = hashCode * -1521134295 + _ShortHash.GetHashCode();
            hashCode = hashCode * -1521134295 + _Hash.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            var hashCode = -1706955063;

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

            hashCode = hashCode * -1521134295 + Filesize.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ModifiedTime.ToString());

            return(hashCode);
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = _logger.GetHashCode();
         hashCode = (hashCode * 397) ^ StagingPercentage.GetHashCode();
         hashCode = (hashCode * 397) ^ (Tag != null ? Tag.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SHA256.GetHashCode();
         hashCode = (hashCode * 397) ^ Filename.GetHashCode();
         hashCode = (hashCode * 397) ^ Filesize.GetHashCode();
         hashCode = (hashCode * 397) ^ IsDelta.GetHashCode();
         hashCode = (hashCode * 397) ^ Version.GetHashCode();
         hashCode = (hashCode * 397) ^ (OldVersion != null ? OldVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ FileLocation.GetHashCode();
         return(hashCode);
     }
 }