क्या 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
}
}
}