using : using « Statement « C# / CSharp Tutorial






There are two forms of the using directive.

The first form:

using nameOfANameSpace;

All of the members defined within nameOfANameSpace are brought into view and can be used without qualification.

The second form:

using alias = name;

A using directive must be specified at the top of each file, prior to any other declarations.









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