Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
using
Collapse the table of content
Expand the table of content

using (C# Reference)

The using keyword has two major uses:

  • As a directive, when it is used to create an alias for a namespace or to import types defined in other namespaces. See using Directive.

  • As a statement, when it defines a scope at the end of which an object will be disposed. See using Statement.

Community Additions

ADD
Show:
© 2015 Microsoft