Created
February 3, 2021 22:59
-
-
Save pageaffairs/a570daaf1d21f437720d2c9ea0927e61 to your computer and use it in GitHub Desktop.
ASP.NET application snippet: 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<ReturnType> DoSomethingAndReturnSomeValAsync() | |
{ | |
DoSomething(); | |
SomeType someObj = await DoSomethingElseAsync(); | |
return new ReturnType(someObj); | |
} | |
private async Task<SomeType> DoSomethingElseAsync(){ | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment