What is namespace?

Namespace in the .NET Runtime are used to organize classes and other types into a single hierarchical structure.Namespace can also be thought of as way to specify really long names for classes and other without having to always type a full name.
Namespace are define using the namespace statement.For multiple levels of organization, namespace can be nested:
namespace Outer
{
namespace Inner
{
class MyClass
{
public static void Function(){}
}
}
}

No comments:

Post a Comment