You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
470 B
C#
23 lines
470 B
C#
4 years ago
|
/*
|
||
|
* C# Program to Demonstrate Environment Type
|
||
|
using System;
|
||
|
class Program
|
||
|
{
|
||
|
static void Main()
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
Environment.Exit(0);
|
||
|
}
|
||
|
finally
|
||
|
{
|
||
|
Console.WriteLine("Statement that is Never Reached");
|
||
|
}
|
||
|
Console.Read();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
// No Output is obtained
|
||
|
// Calls the Environment.Exit method and returns a zero status code.
|
||
|
// The finally statement is never reached.
|