the value stored in the hash set is an object (integer array) reference. Changing an array element does not change the array’s reference. You would need to recreate the array itself to change its value.
Dim v = key ‘v references key
key(1) = 6
if v = key then
MessageBox.Show(“still match”)
end if
Note: if the array was a read only .net structure, then changing an element value would change the value. But I believe this is only available in c#.