Beginner C#
Q13 / 100

What is the purpose of using statement?

Correct! Well done.

Incorrect.

The correct answer is B) Both imports a namespace AND manages resource disposal via IDisposable

B

Correct Answer

Both imports a namespace AND manages resource disposal via IDisposable

Explanation

using System; imports a namespace. using (var f = File.Open(...)) { } disposes IDisposable resources when leaving the block.

Progress
13/100