title: How can I return null or bool from a function
body: <p>I have this function:</p>
  
  <pre><code>public bool GetBoolSetting(Settings setting)
  {
      return int.Parse(GetStringSetting(setting)) == 0 ? false : true;
  }
  </code></pre>
  
  <p>There is a problem in that <code>GetStringSetting(setting)</code> can return <code>null</code>, <code>"0"</code> or <code>"1"</code>.  When it returns a <code>null</code> I get an exception. </p>
  
  <p>Is it possible for me to make the <code>GetBoolSetting</code> function return a null if this happens?</p>