title: Need .NET code to execute only when in debug configuration
body: <p>I have some code that access an API out on the web. One of the API's parameters allows me to let them know that I am testing.</p>
  
  <p>I would like to only set this parameter in my code when I am testing. Currently, I just comment the code out when I do a release build. </p>
  
  <p>Is there an automatic way of doing this based on the build configuration?</p>