1.

Explain About Using Directive?

Answer»

The USING directive has two USES:

  • To allow the use of types in a namespace so that you do not have to qualify the use of a type in that namespace
  • To CREATE an ALIAS for a namespace or a type. This is called a using alias directive.

The scope of a using directive is limited to the file in which it appears. Create a using alias to make it EASIER to qualify an identifier to a namespace or type.Namespaces come in two categories: user-defined and system-defined. User-defined namespaces are namespaces defined in your code.

The using directive has two uses:

The scope of a using directive is limited to the file in which it appears. Create a using alias to make it easier to qualify an identifier to a namespace or type.Namespaces come in two categories: user-defined and system-defined. User-defined namespaces are namespaces defined in your code.



Discussion

No Comment Found