Forked from pageaffairs/gist:a570daaf1d21f437720d2c9ea0927e61
Created
February 4, 2021 07:49
-
-
Save SitePointEditors/c48ac22e884aa4879275a466a355747d 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