Writing an infinite loop is simple:
while(true){ //add whatever break condition here }
But this will trash the CPU performance. This ex
To keep console applications running just add a Console.ReadLine() to the end of your code in Main().
Console.ReadLine()
Main()
If the user shouldn't be able to terminate the application you can do this with a loop like the following:
while (true){ Console.ReadLine(); }