title: switch statement in C# and "a constant value is expected"
body: <p>Why does the compiler say "a constant value is required" for the first case...the second case works fine...  </p>
  
  <pre><code>switch (definingGroup)
  {
      case Properties.Settings.Default.OU_HomeOffice:  
          //do something  
          break;
      case "OU=Home Office":  
          //do something
          break;
      default:
          break;
   }
  </code></pre>
  
  <p>also tried...</p>
  
  <pre><code>switch (definingGroup)
  {
      case Properties.Settings.Default.OU_HomeOffice.ToString():  
          //do something
          break;
      case "OU=Home Office":
          //do something
          break;
      default:
          break;
   }
  </code></pre>
  
  <p>...same error</p>
  
  <p>Here's the Properties.Setting code</p>
  
  <pre><code>[global::System.Configuration.ApplicationScopedSettingAttribute()]
  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  [global::System.Configuration.DefaultSettingValueAttribute("OU=Home Office")]
  public string OU_HomeOffice {
      get {
          return ((string)(this["OU_HomeOffice"]));
      }
  }
  </code></pre>