Demonstrate the : Namespace : Language Basics C# Examples


C# Examples » Language Basics » Namespace »

 

Demonstrate the









    
using  System;    
    
using  Counter;  
using  AnotherCounter;  
  
//  Give  Counter  an  alias  called  Ctr.  
using  Ctr  =  Counter;    
    
namespace  Counter  {    
    class  MyClass  {  
    }    
}    
  
namespace  AnotherCounter  {    
    class  MyClass  {  
    }  
}  
  
class  MainClass  {    
    public  static  void  Main()  {    
  
        Ctr::MyClass  m  =  new  Ctr::MyClass();    
    }    
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Language Basics
» Namespace