Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SitePointEditors/c48ac22e884aa4879275a466a355747d to your computer and use it in GitHub Desktop.
Save SitePointEditors/c48ac22e884aa4879275a466a355747d 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