Namespace?
What is namespace in .net?
2 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
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 14, 2013, 1:12 AM EDT
Consider a scenario. There are 2 classes both with the same name called mouse. One class refers to the animal mouse and the other refers to the computer mouse. So when you are calling mouse, how do you know, which to call. To avoid this conflict, we logically group simialr classes together to form containers called namespaces. In java, the equivalent of namespaces is packages.
Please refer the below link for more details
http://msdn.microsoft.com/en-us/library/ms973231.aspx#assenamesp_topic5
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 14, 2013, 12:59 PM EDT
http://csharp-station.com/Tutorial/CSharp/Lesson06