C# Async MainFrom 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 ExampleOutput: This is async Main method In this example, an asynchronous Main method calls to another async method. C# Asynchronous Main Method ExampleOutput: length: 36006 Next TopicC# Default Expression |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India