5 second timer in c#

C#
private async void delay()
{
    await Task.Delay(5000);
    someMethod(); // <-- your method
}
Source

Also in C#: