An entry point cannot be marked with the 'async' modifier
问题 I copied below code from this link.But when I am compiling this code I am getting an entry point cannot be marked with the 'async' modifier . How can I make this code compilable? class Program { static async void Main(string[] args) { Task<string> getWebPageTask = GetWebPageAsync("http://msdn.microsoft.com"); Debug.WriteLine("In startButton_Click before await"); string webText = await getWebPageTask; Debug.WriteLine("Characters received: " + webText.Length.ToString()); } private static async