Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# exit console

static void Main()
{
	//do stuff
  
	Environment.Exit(1);// exit
}
Comment

how to exit application c# console

System.Environment.Exit(0);
// or
Environment.Exit(0);
Comment

c# exit application

// In a console application:
Environment.Exit(0);
// In a WPF application:
Close();
Comment

c# exit application


if (System.Windows.Forms.Application.MessageLoop) 
{
    // WinForms app
    System.Windows.Forms.Application.Exit();
}
else
{
    // Console app
    System.Environment.Exit(1);
}

Comment

c# how to terminate console application

System.Envrionment.Exit(0);  
  
//or
  
Envrionment.Exit(0);
Comment

PREVIOUS NEXT
Code Example
Csharp :: move in the direction that player is facing unity 
Csharp :: unity disable cursor 
Csharp :: get random file in directory c# 
Csharp :: how to reference scripts in other scenes unity 
Csharp :: c# format decimal as currency 
Csharp :: get random number c# 
Csharp :: c# socket bind to localhost 
Csharp :: c# list all files in a directory and subdirectory 
Csharp :: c# right click event 
Csharp :: how to instantiate as child unity 
Csharp :: substring c# after character 
Csharp :: OnCollision update 
Csharp :: c# write to console 
Csharp :: messagebox.show c# error 
Csharp :: check if string is a guid c# 
Csharp :: unity text display int 
Csharp :: c# system.drawing.color to system.windows.media.color 
Csharp :: mymove() method c# 
Csharp :: .net loop through dictionary 
Csharp :: wpf rounded image 
Csharp :: c# set file invisible 
Csharp :: how to draw over label C# 
Csharp :: how to make a partical system to destroy itself after it finishing 
Csharp :: get the current directory in unity 
Csharp :: clear array c# 
Csharp :: unity destroy self 
Csharp :: making a list of chars in c# 
Csharp :: Tower of Hanoi c# 
Csharp :: How to read a XML on C# 
Csharp :: c# get month number from name 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =