Question: What is the purpose of the 'using' statement in C#?
A
B
C
D
To include namespaces.
B
To create a new variable.
C
To declare a class.
D
To manage resources and ensure disposal.
Note: To manage resources and ensure disposal.
Analysis: The using statement is used to ensure that IDisposable objects are disposed of properly, automatically releasing resources when they are no longer needed.