Generally asynchronous methods can have only void return types. If you wish to return some value use the following. This will work only with C# 5.0. The code snippet below works with versions lower than 5.0 too.
Asynchronous programming in Windows phone application adds two new keywords: async and await. This new feature is a simplified way of improving the performance of the app and making it more responsive to the user without the complexity of writing code to use multiple threads. You can easily understand its use by the following example […]