Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.