title: Bob Jenkins perfect hash function in VB.Net
body: <p>I am trying to convert Bob Jenkins perfect hash function from C# to VB.Net and I am stuck at following.</p>
  
  <pre><code>a += (UInt32)(url[k + 0] + (url[k + 1] &lt;&lt; 8) + (url[k + 2] &lt;&lt; 16) + (url[k + 3] &lt;&lt; 24))
  </code></pre>
  
  <p>How can I write above statement in VB.Net?</p>
  
  <p>Please note the following:</p>
  
  <p>a is UInt32<br>
  url is String<br>
  k is Integer  </p>
  
  <p>I tried the following but it doesn't work.</p>
  
  <pre><code>a += url(k + 0) + (url(k + 1) &lt;&lt; 8) + (url(k + 2) &lt;&lt; 16) + (url(k + 3) &lt;&lt; 24)
  </code></pre>
  
  <p>To avoid manually doing type casting, I am using "Option Strict Off"</p>