i tried converting this code from c#
a += (uint)(url[k + 0] + (url[k + 1] << 8) + (url[k + 2] << 16) + (url[k + 3] << 24));
to vb,net i get this
a += CUInt(url(k + 0) + (url(k + 1) << 8) + (url(k + 2) << 16) + (url(k + 3) << 24))
an i get this error
Operator ‘<<‘ is not defined for types ‘Char’ and ‘Integer’.
Can anyone help me with a correction
EDIT
uint a, b;
a = b = 0x9E3779B9;
url = string
Your main problem seems to be that C# will allow bit-shifting on a char whereas VB does not.
So you would need something like (untested)
But it does look like a rather weak HashCode.