Answers for "how to exit c#"

C#
2

c# exit

// In a console application:
Environment.Exit(0);
// In a WPF application:
Close();
Posted by: Guest on September-16-2020
1

exit programm c#

Application.Exit();
Posted by: Guest on September-14-2020
0

c# how to exit program

System.Environment.Exit(1);
Posted by: Guest on June-01-2020
2

exit a method c#

private void Test(int condition)
{
  if(condition)
    return; // Exit the methode

  // Here code if condition == false
}
Posted by: Guest on August-11-2020

C# Answers by Framework

Browse Popular Code Answers by Language