csharp close all threads application exit
Code Example - csharp close all threads application exit
Put this code at the end of your Main() method:
Environment.Exit(Environment.ExitCode);
Put this code at the end of your Main() method:
Environment.Exit(Environment.ExitCode);