Qus:    What does a keyword using works for?
Nov 30, 2020 19:37 DotNet 2 Answers Views: 1032 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 14: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 15: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 solution is right for you?

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


Let`s Connect