.Net 4.6
What is the difference between calling method with await that has "async" and the same that doesn't have "async" or is there any difference?
protected Task<MyObject<T>> MyMethod1<T>(string parameter)
{
return CallDb();
}
protected async Task<MyObject<T>> MyMethod2<T>(string parameter)
{
return await CallDb();
}
// Calling these
public async Task<IEnumerable<string>>(string parameter)
{
return await MyMethod1<string>(parameter);
// Any difference?
return await MyMethod2<string>(parameter);
}
public Task<string> CallDb()
{
}