title: dr.Item("Value1") has value but always return 0 when assigned to another variable
body: <p>I need to modify some VB.net code. There is a strange problem that I am facing. I am retrieving value from a DataTable and trying to assign it to a variable. When I check the value of some column in QuickWatch window then it has value but when I assign it to a variable then 0 is returned to the variable. Below is the simple statement that is causing the problem.</p>
  
  <pre><code>Dim MyAmount As Double = Double.Parse(dr.Item("Amount").ToString)
  </code></pre>
  
  <p>In the QuickWatch window when I check dr.Item("Amount") then it has value 30.12 and after executing the above statement MyAmount has value 0. May be VB.net work somewhat different that I do not know?</p>
  
  <p>Edit:
  It is kind of wierd that above mentioned statement is not returning value. The following statement is running absolutely fine.</p>
  
  <pre><code>Dim tmpVar As String() = dr.Item("Amount").ToString.Split(".")
  </code></pre>
  
  <p>Latest Edit:</p>
  
  <p>I think it has become more wierd. The problem does not seem to be related with dr.Item("Amount"). Suppose I want to store the current culture value in a variable by following code,</p>
  
  <pre><code>Dim CultureInformation As String = System.Globalization.CultureInfo.CurrentCulture.DisplayName
  </code></pre>
  
  <p>Now CutlureInformation variable after the statement is executed contains "nothing" but the DisplayName has value of English (United States). So I think the problem is somewhere else.</p>