Intermediate
C#
Q76 / 100
What is the using declaration (C# 8)?
Correct! Well done.
Incorrect.
The correct answer is B) A declaration that disposes the resource at the end of the enclosing scope without a block
B
Correct Answer
A declaration that disposes the resource at the end of the enclosing scope without a block
Explanation
using var conn = GetConnection(); disposes conn at end of the method instead of requiring a using { } block, reducing indentation.
Progress
76/100