There are two conversions enabling the new c# 8.0 feature of using declarations. One is straight forward:
Convert to 'using' declaration
The other is less straight forward:
Convert to 'using' declaration (extends resource lifetime)
Well it is clear what is meant by it, but not how bad that is.
Take the following example:
await using (SqlDataReader reader = await SqlHelperAsync.ExecuteReaderAsync(Config.DbConnectionString, CommandType.Text, sqlQuery))
Converting this to a 'using' declaration extends the lifetime of the resource until after the return Answers. But how bad is that?
Is there some guidance when a using declaration should not be used in view of the resource lifetime?