Qus:    What does a keyword using works for?
Nov 30, 2020 13:37 2 Answers Views: 621 SHIVA

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.

Prev Next
Answers (2)
PARTH Dec 01, 2020 08:08
Answer:   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.

SWEETY Dec 01, 2020 09:07
Answer:   Using is a convention or a short-cut method which allows us to access the classes in a namespace by referencing it on top of the class. whenever we need to use the classes or methods from the namespace, we can avoid typing the entire namespace hierarchy.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect