title: c# using #if DEBUG
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7246401/if-not-debug-in-c">#if Not Debug in c#?</a>  </p>
  </blockquote>
  
  
  
  <p>I am not have the permission to upload to the server so I am not able to test the #else part.
  I was wondering if this is the ideal way to have conditionally choose what drive letter to use 
  depending on if in DEBUG (test mode) or in Production mode (#else part)</p>
  
  <pre><code>    #if (DEBUG)
       string driveLetter = "C:\\";
      #else
        string driveLetter = ConfigurationManager.AppSettings["ProdDrive"]; 
      #endif
  </code></pre>