Answers for "c# function on terminate"

C#
3

c# quit

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

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