How can i stop C# console applications from closing automatically ?
At last of your code add this
Console.ReadKey();