Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (IsDimension != false)
            {
                hash ^= IsDimension.GetHashCode();
            }
            if (IsHidden != false)
            {
                hash ^= IsHidden.GetHashCode();
            }
            if (NextSiblingId.Length != 0)
            {
                hash ^= NextSiblingId.GetHashCode();
            }
            if (ParentId.Length != 0)
            {
                hash ^= ParentId.GetHashCode();
            }
            if (HeaderId.Length != 0)
            {
                hash ^= HeaderId.GetHashCode();
            }
            if (format_ != null)
            {
                hash ^= Format.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Iterations != 0)
            {
                hash ^= Iterations.GetHashCode();
            }
            if (HeaderId.Length != 0)
            {
                hash ^= HeaderId.GetHashCode();
            }
            if (DepositId.Length != 0)
            {
                hash ^= DepositId.GetHashCode();
            }
            hash ^= args_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }