Click here to Skip to main content
15,667,885 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
there are 3 different namespace

i was added 1st namespace references to the second namespace .

if i was add reference the 2nd namespace to this 3rd namespace ,

in third namespace only contains the 2nd namespace things only.

why we were not getting firstnamespace things in 3rd namespace.
i was tried in object browser also.
did i was forget any thing here .
Sergey Alexandrovich Kryukov 23-Jun-12 15:24pm    
What a degree of confusion! This is not even about knowledge, I would call it "wrong cognition habits". You need to change them, otherwise you have no chances in development.
DJAppleboy 23-Jun-12 20:08pm    
Fully agree

c# namespaces are not the same as UML namespaces.

You do not import the contents of a namespace into another namespace in .Net.

using is just a way to avoid using fully qualified names in in the source code.

Best regards
Espen Harlinn
Share this answer
Sergey Alexandrovich Kryukov 23-Jun-12 15:47pm    
Sure, a 5.
Amazing degree of confusion. I've added some detail in my comment, not sure if it's useful for OP or not -- please see.
Espen Harlinn 23-Jun-12 16:55pm    
Thank you, Sergey :-D
Please see my comment to the question. The question makes no sense at all.

No, you did not add a namespace reference to a namespace. First of all, there is no such thing as "namespace reference". Second, you cannot add anything, not just reference, to a namespace. In general, a namespace does not carry any semantic at all, it simply defines how any identifier should be prefixed while naming it, nothing else.

The notion of adding references as the relationship between functional units of code written for CLR (don't mix it up with the notion of "references" as managed pointers) is the relationships between assemblies and never anything else. Basically, one assembly can reference another assembly by its name. If assembly does not have a strong name and not places in GAC, this involves file name. But, strictly speaking, a file name is not a name of assembly, but a name of its executable modules. In development with Visual Studio, module is almost invisible, because it allows only one kind of assembly — and assembly composed of only one, main module, but using stand-along compilers of MSBuild, it is possible to create multi-module assemblies. They are not very needed, so VS does not support them, but (at least) one module always exists.

You should start from learning the concept of assembly, a fundamental concept of .NET, CLI and CLR:[^],[^],[^].

See also:[^],[^].

Please don't think you can do programming without good understanding of the basics. You can write something, but who would need the result of it? If you don't understand such basic things well, any development would be just a waste of time.

Share this answer
Espen Harlinn 23-Jun-12 16:54pm    
Good reply :-D
Sergey Alexandrovich Kryukov 23-Jun-12 17:34pm    
Thank you, Espen.
jameschowdaree 24-Jun-12 5:40am    
i got a doubt/thought that im sharing with you techies .
Sergey Alexandrovich Kryukov 25-Jun-12 1:13am    
This comment is not clear.
If you understand my explanations, please accept the answer (green button) and thanks, if not -- you are welcome to ask your follow-up questions.
jameschowdaree 25-Jun-12 7:32am    
no, sergey, iam good developer, i usually follow,scottgu,ha,and jeffery archer,and some other,that day night i got that doubt,i will all the refactorying,smart code etc,and use optimise techniques,but for your comment i feel bad,i gone through all your links ,there is no link says,what im looking for,those mainly for how to create and make the sharedassembly,kindly take my words are personally,i respect all .net techies ,im passioned for

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900