title: How to retrieve address of variable in vb.net?
body: <p>How can we fetch variable address where it is stored in memory ?
  `</p>
  
  <pre><code>Sub Main()
      Dim a As Integer
      a = 10
      System.Console.WriteLine("Value of a is : {0}", a)
      System.Console.WriteLine("Address of a is : {0}", AddressOf(a))
      System.Console.ReadKey()
  End Sub
  </code></pre>
  
  <p>`
  Here AddressOf is require function name but i want to get address of integer variable.</p>