Пример #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);
        }