0
What is a namespace
4 Answers
+ 1
https://msdn.microsoft.com/en-us/library/5cb46ksf.aspx
+ 1
NameSpace is the Logical group of types or we can say namespace is a container (e.g Class, Structures, Interfaces, Enumerations, Delegates etc.), example System.IO logically groups input output related features , System.Data.SqlClient is the logical group of ado.net Connectivity with Sql server related features.
+ 1
// Namespace Declaration
using System;
// The Namespaces
namespace MyNameSpace
{
namespace Video
{
// Program start class
class MyVideo
{
//Functionality
public static void play()
{
//..
}
}
}
namespace Audio
{
// Program start class
class MyAudio
{
//Functionality
public static void play()
{
//..
}
}
}
}