0





70
1

This question already has an answer here:

Question author Ravior | Source

0


1

Sorry, I'm going to give you the "hard love" answer.

I simply want to return a string from a function where I need to do api calls on windows phone environment. I dont want to return a Task, just a string.

Too bad. The correct solution is to return a Task<string>, especially on a mobile platform. Any other solution is just going to be a hack.

I simply dont know how to get values from functions without always using await at the exact place I call a function that should be simply executed (which makes this entire async/await thing senseless).

It's not senseless at all. async/await is what keeps your UI responsive. This is necessary for your app to be accepted in the Windows Store.

Answer author Stephen-cleary

Ask about this question here!