Demonstrate a namespace. : Namespace : Language Basics C# Examples


C# Examples » Language Basics » Namespace »

 

Demonstrate a namespace.









    
using  System;  
  
namespace  Counter  {  
    class  MyClass  {  
    }  
}  
  
class  MainClass  {  
    public  static  void  Main()  {  
        Counter.MyClass  my  =  new  Counter.MyClass();  
    }  
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Language Basics
» Namespace