What is the purpose of the 'using' statement in C#?
- Automatic resource disposal and namespace imports
- Defining classes
- Only for importing namespaces
- Creating variables
Explanation
The 'using' statement serves two purposes: importing namespaces and ensuring automatic disposal of resources that implement IDisposable, providing proper resource management.