Skip to content

Instantly share code, notes, and snippets.

@pageaffairs
Created February 3, 2021 22:59
Show Gist options
  • Save pageaffairs/a570daaf1d21f437720d2c9ea0927e61 to your computer and use it in GitHub Desktop.
Save pageaffairs/a570daaf1d21f437720d2c9ea0927e61 to your computer and use it in GitHub Desktop.
ASP.NET application snippet: 1
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