C# Language Keywords using

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

There are two types of using keyword usage, using statement and using directive:

  1. 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

  2. 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.



Got any C# Language Question?