A namespace is declared using the namespace keyword.
The general form of namespace is shown here:
namespace name {
// members
}
using System;
namespace HelloWorld
{
/// <summary>
/// Summary description for Class1.
/// </summary> class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread] static void Main(string[] args)
{
System.Console.WriteLine( "Hello world from C#" );
}
}
}