There are two types of using
keyword usage, using statement
and using directive
:
using statement:
The using
keyword ensures that objects that implement the IDisposable
interface are properly disposed after usage. There is a separate topic for the using statement
using directive
The using
directive has three usages, see the msdn page for the using directive. There is a separate topic for the using directive.