मुझे कैसे पता चलेगा कि मेरा सी # कंसोल एप्लिकेशन कब रुक जाएगा? क्या कोई घटना है या ऐसा है?कंसोल एप्लिकेशन के लिए शट डाउन इवेंट सी #
धन्यवाद! आवेदन डोमेन
class Program
{
static void Main(string[] args)
{
AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit);
}
static void CurrentDomain_ProcessExit(object sender, EventArgs e)
{
Console.WriteLine("exit");
}
}
क्या आप ऐप से बाहर निकलने के लिए कोड चाहते हैं? –
[इस सवाल तुम्हारा साथ समान है] [1] [1]: http://stackoverflow.com/questions/1119841/net-console-application-exit-event – greijner