Terminate this process and gives the underlying operating system the specified exit code in CSharp

Description

The following code shows how to terminate this process and gives the underlying operating system the specified exit code.

Example


/* w w  w .j a v a  2  s  . co m*/

using System;

class Sample 
{
    public static void Main() 
    {
       Environment.Exit(0);
    }
}




















Home »
  C# Tutorial »
    Development »




Console
Encoding
Environment
Random