Demonstrate a using alias : Using : Statement C# Examples


C# Examples » Statement » Using »

 

Demonstrate a using alias









    
using  System;  
  
//  Create  an  alias  for  Counter.CountDown.  
using  Count  =  Counter.MyClass;  
  
namespace  Counter  {  
    class  MyClass  {  
    }  
}  
  
class  MainClass  {  
    public  static  void  Main()  {  
        Count  cd1  =  new  Count();  
    }  
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Statement
» Using