Quote:
Originally Posted by sansoni1
Namespace is a Keyword used declare a Scope. If you do not declare a namespace, a default namespace will be created. this unnamed namespace some times called Global namespace, this will created every file.
|
Namespace is logical division of class, structure and interface OR way to organize your .NET code is through the use of namespaces
Namespaces are a way of grouping type names and reducing the chance of name collisions.
namespace ExampleNamespace
{
class TestExample
{
public void ShowMessage()
{
Console.WriteLine("This is the TestExample namespace!");
}
}
}