Hello World in C#

Using Directive Using

 
using System;

Most C# class declarations start with section of using directives.  In this section we list namespaces used in this class.  Providing using directives allows you to write code like:

Console.WriteLine("Hello, World!");

instead of

System.Console.WriteLine("Hello, World!");

 

Page 4 of 10