public static int Main(string[] args) { using (MainClass mc = new MainClass()) { try { return mc.Main(args); } catch (Exception e) { Console.Error.WriteLine(e); return -1; } } }
public void MainRun() { MainClass mc = new MainClass(); string[] args = new string[] {"hello.exe"}; mc.Main(args); }