wait functions c# code example
Example 1: c# Sleep
using System.Threading;
static void Main()
{
//do stuff
Thread.Sleep(5000) //will sleep for 5 sec
}
Example 2: how to wait in c#
System.Threading.Thread.Sleep(Milliseconds);
using System.Threading;
static void Main()
{
//do stuff
Thread.Sleep(5000) //will sleep for 5 sec
}
System.Threading.Thread.Sleep(Milliseconds);