diff --git a/samples/snippets/csharp/VS_Snippets_CLR/AsyncDesignPattern/CS/Async_EndBlock.cs b/samples/snippets/csharp/VS_Snippets_CLR/AsyncDesignPattern/CS/Async_EndBlock.cs index 47e992c42e8af..cac01a7f5bfac 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/AsyncDesignPattern/CS/Async_EndBlock.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR/AsyncDesignPattern/CS/Async_EndBlock.cs @@ -30,7 +30,7 @@ public static void Main(string[] args) // Do any additional work that can be done here. try { - // EndGetHostByName blocks until the process completes. + // EndGetHostEntry blocks until the process completes. IPHostEntry host = Dns.EndGetHostEntry(result); string[] aliases = host.Aliases; IPAddress[] addresses = host.AddressList; @@ -58,4 +58,4 @@ public static void Main(string[] args) } } } -// \ No newline at end of file +//