title: Run code only in production environment
body: <p>I am developing an <code>ASP.NET</code> application.</p>
  
  <p>I have this sort of line in my code:</p>
  
  <pre><code>message.CC.Add("ALL@mycompany.com");
  </code></pre>
  
  <p>When working on development environment I would like this line not to be executed, so far, my solution is to comment it out before publishing.</p>
  
  <p>Is there any built-in custom production flag in <code>ASP.NET</code> ?</p>
  
  <p>Something like:</p>
  
  <pre><code>if (productionFlag)
      message.CC.Add("ALL@mycompany.com");
  </code></pre>