Interview Question
Qus: What does a keyword using works for?
The using keyword has several uses-
1. The using statement defines a scope at the end of which an object will be disposed.
2. The using directive creates an alias for a namespace or imports types defined in other namespaces.
3. The using static directive imports the members of a single class.
Answers (2)
1. The using statement defines a scope at the end of which an object will be disposed.
2. The using directive creates an alias for a namespace or imports types defined in other namespaces.
3. The using static directive imports the members of a single class.