Answers for "c# exit a function"

C#
0

c# how to exit program

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

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
-1

how to exit a program in c#

Application.Exit();
Posted by: Guest on March-21-2020

C# Answers by Framework

Browse Popular Code Answers by Language