dotnet-core/samples/helloworldasync/Program.cs
Sławomir Bryś 8c17d2b7fc Added 'async Main' helloworld example. (#1394)
* Added 'async Main' helloworld example.

* Removed conditions in property groups.

* Mark project as C# 7.1 explicit.

* Tabify .cs file.

* Corrected tabs.
2018-04-02 22:28:05 -07:00

13 lines
No EOL
214 B
C#

using System;
using System.Threading.Tasks;
namespace HelloWorldSample
{
public static class Program
{
public static async Task Main()
{
await Task.Run(() => Console.WriteLine("Hello World!"));
}
}
}