title: What's the preferred way of exiting a command line program?
body: <p>This should be straightforward. I just need to simply exit my commandline c# program - no fancy stuff.</p>
  
  <p>Should I use </p>
  
  <pre><code>Environment.Exit();
  </code></pre>
  
  <p>or</p>
  
  <pre><code>this.Close();
  </code></pre>
  
  <p>or something else?</p>