using alias directive : Using : Statement C# Examples


C# Examples » Statement » Using »

 

using alias directive









    
using  MyNameSpaceFormSystem  =  System;                            
using  MyNameSpaceFormSystemConsole      =  System.Console;

class  MainClass
{
      static  void  Main()
      {
            MyNameSpaceFormSystem.Console.WriteLine("test");
            System.Console.WriteLine("test");
            MyNameSpaceFormSystemConsole.WriteLine("test");
      }
}
    
   
  
   



Output

test
test
test


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Statement
» Using