6
무슨 이런 ApplicationContext
사용하여 프로그램 작성의 차이 :ApplicationContext를 사용하면 어떤 이점이 있습니까?
using System;
using System.Windows.Forms;
namespace Test
{
class Test
{
static void Main(string[] args)
{
Application.Run(new Context(args));
}
}
class Context : ApplicationContext
{
public Context(string[] args)
{
//the program
Environment.Exit(1);
}
}
}
및 표준 Main
를?
namespace Test
{
class Test
{
static void Main(string[] args)
{
//the program
}
}
}