title: C# Properties.Settings.Default
body: <p>How to ensure that retrieving value from <code>Properties.Settings.Default</code> exists?
  For example, when I use this code:</p>
  
  <pre><code>folderBrowserDialog1.SelectedPath = (string)Properties.Settings.Default["SelectedPath"];
  </code></pre>
  
  <p>and value <code>SelectedPath</code> does not exist, I get the followng exception:</p>
  
  <blockquote>
    <p>System.Configuration.SettingsPropertyNotFoundException' occurred in
    System.dll</p>
  </blockquote>
  
  <p>How can I avoid this exception?</p>