Out parameters in Async methods.

A little while ago, I wanted to have an asynchronous method that returned a string but also populated an integer “out” parameter. So I started writing the method as below // Note: This will give compiler error. private async Task<string> GetUserDetails(out int userRegionCode) {     userRegionCode=105;     return “samplestring”; } However, the compiler showed an […]