Monthly Archives: October 2014

What’s the difference between Task.ContinueWith and await?

In the .NET there are many ways to implement asynchronous programs. We can use the Task, Task<T> or await keyword to write asynchronous programs. For Example: Task<IPAddress[]> addresses = Dns.GetHostAddressAsync(“msdn.com”); addresses.ContinueWith(parameter =>      { IPAddress[] ipAddresses = addresses.Result; }); As … Continue reading

Posted in .NET, .NET 4.5, C# 5 | Leave a comment