AsyncFixer icon indicating copy to clipboard operation
AsyncFixer copied to clipboard

Parentheses are not added if a chained sync call is converted

Open ChairmanMawh opened this issue 8 months ago • 0 comments

Consider:

var x = myEfDbContext.MyTable.First().Id

Fixing the 02 on First() generates:

var x = await myEfDbContext.MyTable.FirstAsync().Id

When it would ideally be:

var x = (await myEfDbContext.MyTable.FirstAsync()).Id

ChairmanMawh avatar Jun 07 '24 17:06 ChairmanMawh