Created
October 24, 2016 11:16
-
-
Save nojaf/68e3b5411dd2dd17ddc977d2cb405fc8 to your computer and use it in GitHub Desktop.
MainAsync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
MainAsync(args).GetAwaiter().GetResult(); | |
Console.ReadKey(); | |
} | |
public static async Task MainAsync(string[] args) | |
{ | |
await Task.Delay(1000); | |
Console.WriteLine("Hello World!"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment