title: Empty String to Double C#
body: <p>At this moment i am trying to get a double value from textbox like this:</p>
  
  <pre><code>String.IsNullOrEmpty(textBox1.Text) ? 0.0 : Double.Parse(textBox1.Text)
  </code></pre>
  
  <p>But there is a problem, i cant get how to parse empty textbox?</p>
  
  <p>For example if to try this code with OleDb and Excel with empty textbox, we will get error </p>
  
  <p>System.FormatException: Input string was not in a correct format.</p>