public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.host_name)
                {
                    hashcode = (hashcode * 397) + Host_name.GetHashCode();
                }
                if (isset.page_size)
                {
                    hashcode = (hashcode * 397) + Page_size.GetHashCode();
                }
                if (isset.max_num_pages)
                {
                    hashcode = (hashcode * 397) + Max_num_pages.GetHashCode();
                }
                if (isset.num_pages_allocated)
                {
                    hashcode = (hashcode * 397) + Num_pages_allocated.GetHashCode();
                }
                if (isset.is_allocation_capped)
                {
                    hashcode = (hashcode * 397) + Is_allocation_capped.GetHashCode();
                }
                if (isset.node_memory_data)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Node_memory_data);
                }
            }
            return(hashcode);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.row_desc)
                {
                    hashcode = (hashcode * 397) + Row_desc.GetHashCode();
                }
                if (isset.fragment_size)
                {
                    hashcode = (hashcode * 397) + Fragment_size.GetHashCode();
                }
                if (isset.page_size)
                {
                    hashcode = (hashcode * 397) + Page_size.GetHashCode();
                }
                if (isset.max_rows)
                {
                    hashcode = (hashcode * 397) + Max_rows.GetHashCode();
                }
                if (isset.view_sql)
                {
                    hashcode = (hashcode * 397) + View_sql.GetHashCode();
                }
                if (isset.shard_count)
                {
                    hashcode = (hashcode * 397) + Shard_count.GetHashCode();
                }
                if (isset.key_metainfo)
                {
                    hashcode = (hashcode * 397) + Key_metainfo.GetHashCode();
                }
                if (isset.is_temporary)
                {
                    hashcode = (hashcode * 397) + Is_temporary.GetHashCode();
                }
                if (isset.partition_detail)
                {
                    hashcode = (hashcode * 397) + Partition_detail.GetHashCode();
                }
            }
            return(hashcode);
        }