title: return string variable from Main()
body: <p>I would like to return a string variable from my Main() method. I've returned int variables. But I'm not sure if it's possible to return a string variable from Main() when you exit the program?</p>
  
  <p>Any ideas?</p>
  
  <p>Here is my int code:</p>
  
  <pre><code>    public class Program
  {
      /// &lt;summary&gt;
      /// The main entry point for the application.
      /// &lt;/summary&gt;
      [STAThread]
      static int Main()
      {
          Application.EnableVisualStyles();
          Application.SetCompatibleTextRenderingDefault(false);
          Application.Run(new Form1());
  
          int error = 1;
  
          return error;
  
      }
  
  }
  </code></pre>
  
  <p>If I change int to string, I get this error: Program does not contain a static 'Main' method suitable for an entry point. So obviously this is not allowed. What is the correct approach?</p>