C # exit code example
Example 1: exit programm c#
Application.Exit();
Example 2: exit a method c#
private void Test(int condition)
{
if(condition)
return; // Exit the methode
// Here code if condition == false
}
Application.Exit();
private void Test(int condition)
{
if(condition)
return; // Exit the methode
// Here code if condition == false
}