title: PInvokeStackImbalance while using "static extern int system(string str)"
body: <p>I'm trying to use the system(string str) Command for dos-operations in C#.</p>
  
  <pre><code>namespace XYZ
  {
      internal class Program
      {
          [DllImport("msvcrt.dll")]
          static extern int system(string str);
  
          static void Main(string[] args)
          {
               string Command = Console.ReadLine();
               system(Command); 
               /* Excutes command, then "PInvokeStackImbalance". */
          }
      }
  }
  </code></pre>
  
  <p>I know using <code>static extern int system(string str)</code> is a bad solution, but I've tried other solutions which did not work.</p>