title: Limiting the size of the managed heap in a C# application
body: <p>Can I configure my C# application to limit its memory consumption to, say, 200MB?
  IOW, I don't want to wait for the automatic GC (which seems to allow the heap to grow much more than actually needed by this application).</p>
  
  <p>I know that in Java there's a command line switch you can pass to the JVM that achieves this.. is there an equivalent in C#?</p>
  
  <p>p.s.</p>
  
  <p>I know that I can invoke the GC from code, but that's something I would rather not have to do periodically. I'd rather set it once upon startup somehow and forget it.</p>