c# console delay

C#
int milliseconds = 2000;
Thread.Sleep(milliseconds);
Source

Also in C#: