Q:

What is the major use of ‘using’ keyword in c#?

0

What is the major use of ‘using’ keyword?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The using keyword has three major 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.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C# Interview Questions and Answers,You Need To Know

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is the difference between String and string i... >>
<< What is the use of ‘using’ statement in C#?...