title: What is the difference between variable = 0 and variable = nothing in .NET?
body: <p>What is the difference between: </p>
  
  <pre><code>Dim intVal as integer
  intVal = 0
  </code></pre>
  
  <p>and</p>
  
  <pre><code>intVal = nothing
  </code></pre>
  
  <p>I have read from MSDN that nothing sets a value to 0 as well:</p>
  
  <p>From MSDN:</p>
  
  <pre><code>Public Structure testStruct
      Public name As String
      Public number As Short
  End Structure
  Dim ts As testStruct, i As Integer, b As Boolean
  ts = Nothing 
  ' The preceding statement sets ts.name to "" and ts.number to 0.
  i = Nothing 
  b = Nothing 
  ' The preceding statements set i to 0 and b to False. 
  </code></pre>