Javatpoint Logo
Javatpoint Logo

C# Async Main

From C# 7.1, C# compiler allows us to create asynchronous Main method.

It helps us to perform asynchronous tasks at entry level of the application. Main method may contain an await expression to perform asynchronous task.

The using System.Threading.Tasks; namespace is used to access Task type.

C# provides following valid asynchronous overloaded Main methods.

C# Asynchronous Main Example


This is async Main method

In this example, an asynchronous Main method calls to another async method.

C# Asynchronous Main Method Example


length: 36006

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA