Home » Tips » General » How to make an Asynchronous Method return a value?
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.
Related
I am pursuing BTech in Software Engineering from Delhi Technological University. I develop apps, create websites and blog about my app experiences.