Hi Prashant,
The name space is nothing but logical separation of the code. In other word It is grouping of the classes.., under a name the name is called NameSpace.
Example:
namespace Test
{
public class Class1
{
}
}
Here the Class1 is contained within namespace so called Test
namespace Test
{
public class Class2
{
}
}
Now Class2 is also in the same NameSpace. We cannot declare two classes with same name in same name space but it can be done while namespance is different.
More.., When you are using once class object or its feature in another class in different namespace, you need to get this calss available by using that namespace like
namespace Test3
{
using Test;
public class Class3
{
Class1 class1 = new Class1();
}
}
Thanks and Regards,
Rk_Hirpara.