namespace
explain namespace in detail ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Feb 11, 2014, 2:40 PM
They also help to resolve name clashes. If two classes in different namespaces have the same name, then you can qualify the class name by its namespace (i.e. namespace.classname) so the compiler knows which one you mean.
Namespaces can be nested within each other.
The classes or other types in a particular namespace can be imported into a C# source code file by means of the 'using' directive:
using MyNamespace;
This means that all classes in MyNamespace can be used without qualification unless, of course, you need to resolve a name clash.