C# Programming - Namespaces - Discussion

Discussion Forum : 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?
Add Reference of the namespace.
Use the elements of the namespace.
Add Reference of the namespace.
Import the namespace.
Use the elements of the namespace.
Import the namespace.
Use the elements of the namespace.
Copy the library in the same directory as the project that is trying to use it.
Use the elements of the namespace.
Install the namespace in Global Assembly Cache.
Use the elements of the namespace.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
5 comments Page 1 of 1.

VeX said:   2 years ago
@All.

They said it's in the library, why would we need to add the reference again?

Please explain to me.

Amit said:   7 years ago
It should be;

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

Mahesh said:   1 decade ago
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.

Roy said:   1 decade ago
How many types of namespaces are there and what is their importance?

How many namespaces are there?

Raj said:   1 decade ago
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.

Post your comments here:

Your comments will be displayed after verification.