Here is source code of the C# Program to Demonstrate Environment Type. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.
* C# Program to Demonstrate Environment Type
static void Main()
Console.WriteLine("Statement that is Never Reached");
Here is the output of the C# Program:
// No Output is obtained // Calls the Environment.Exit method and returns a zero status code. // The finally statement is never reached.
Sanfoundry Global Education & Learning Series – 1000 C# Programs.