C# Programming - Namespaces - Discussion

Discussion :: Namespaces - General Questions (Q.No.1)

1. 

If a namespace is present in a library then which of the following is the correct way to use the elements of the namespace?

[A]. Add Reference of the namespace.
Use the elements of the namespace.
[B]. Add Reference of the namespace.
Import the namespace.
Use the elements of the namespace.
[C]. Import the namespace.
Use the elements of the namespace.
[D]. Copy the library in the same directory as the project that is trying to use it.
Use the elements of the namespace.
[E]. Install the namespace in Global Assembly Cache.
Use the elements of the namespace.

Answer: Option B

Explanation:

No answer description available for this question.

Raj said: (Oct 8, 2012)  
By default some namespaces are added to every main file. If you need to use even more you have to add those namespaces either to xml configuration file or working file to import and the name space and then you can use the classes of it.

Roy said: (Apr 22, 2014)  
How many types of namespaces are there and what is their importance?

How many namespaces are there?

Mahesh said: (Nov 18, 2014)  
We cannot find out the namespace because of the program depends upon the key word like delegate or collections or link etc like that so we cannot find out name spaces but one more thing without namespace we cannot develop a program.

Amit said: (Oct 14, 2018)  
It should be;

Add Reference of the library not namespace.
Import the namespace.
Use the elements of the namespace.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.