C Sharp Programming/Keywords/using

The keyword has two completely unrelated meanings in C#, depending on if it is used as a directive or a statement.

The directive
as a directive resolves unqualified type references so that a developer doesn't have to specify the complete namespace.

Example:

can also provide a namespace alias for referencing types.

Example:

The statement
as a statement automatically calls the on the specified object. The object must implement the interface. It is possible to use several objects in one statement as long as they are of the same type.

Example:

/Keywords