using alias directive : using « Statement « C# / CSharp Tutorial






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

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








4.10.using
4.10.1.using
4.10.2.Demonstrate the using directive
4.10.3.Demonstrate a using alias
4.10.4.using alias directive
4.10.5.using Statement
4.10.6.IDisposable and the using Keyword