0

What is a namespace

13th Jun 2017, 2:11 AM
nirupama sekar
nirupama sekar - avatar
4 odpowiedzi
13th Jun 2017, 2:25 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
https://msdn.microsoft.com/en-us/library/5cb46ksf.aspx
13th Jun 2017, 2:27 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 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.
13th Jun 2017, 3:26 AM
Himanshu Sharma
Himanshu Sharma - avatar
+ 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()             {                //..             }         }     } }
13th Jun 2017, 3:28 AM
Himanshu Sharma
Himanshu Sharma - avatar