C#.Net
what is the difference between assembly and namespace
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
AlanRank #669 · 3.6K reputationPosted Oct 4, 2008, 2:38 AM EDT
An assembly is a .NET application, either an .exe or a .dll.
A namespace is a way of organizing your types and can be split over more than one assembly. They help prevent clashes between similarly named types in your application and in any libraries you use.
So, for example, System.dll is an assembly, part of the .NET framework class library.
It contains numerous namespaces such as System, System.IO and System.Net.
However, the System and System.IO namespaces also feature in the .NET framework assembly called mscorlib.dll and so these are examples of namespaces being split over more than one assembly.
Ravi Shankar Kota20 reputationPosted Oct 16, 2008, 12:13 AM EDT
Thanks a lot,Dear Alan.Bye..
Ravi Shankar Kota20 reputationPosted Oct 16, 2008, 12:13 AM EDT
Thanks a lot,Dear Alan.Bye..