how to wait 5 seconds in c# console code example
Example 1: how to wait in c#
System.Threading.Thread.Sleep(Milliseconds);
Example 2: c# wait seconds
//wait 2 seconds
Thread.Sleep(2000);
Task.Delay(2000);
//Both are valid options but I would recommend Task.Delay() as you can still use your UI while waiting