Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

protected override void OnExiting(Object sender, EventArgs args) { base.OnExiting(sender, args); Environment.Exit(Environment.ExitCode); }

Put this code at the end of your Main() method:

Environment.Exit(Environment.ExitCode);
Comment

PREVIOUS NEXT
Code Example
Csharp :: array in unity 
Csharp :: unity new input system get button down 
Csharp :: c# literals 
Csharp :: unity on key press 
Csharp :: c# if int is even 
Csharp :: c# form 
Csharp :: c# optional parameters using 
Csharp :: Selecting item from listview in C# 
Csharp :: unity getcomponent transform.position 
Csharp :: unity add text to text field without deleting the old one 
Csharp :: rb.addforce 3d c# 
Csharp :: xamarin 12 hrs time format tt 
Csharp :: RadioButton IsChecked mapped to ENum xmal 
Html :: html rupee symbol 
Html :: bootstrap col center content 
Html :: open link in new tab 
Html :: html new tab 
Html :: bullet 
Html :: upload only image input tag 
Html :: bootstrap col-md-5 center 
Html :: rails add favicon 
Html :: bsc chain rpc 
Html :: html inbed youtube 
Html :: meta redirect header 
Html :: fontawesome cdn 
Html :: meta theme color 
Html :: bootstrap outline buttons 
Html :: html canvas clear shadow 
Html :: Html.Raw blazor 
Html :: email link html 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =