O'Reilly logo
  • Ada Lungu thinks this is interesting:

Normally, when applied like this, the using statement ensures that an object is disposed of when it goes out of scope. It is commonly used for database connections, for example, to make sure that they are closed as soon as a query has completed. (This application of the using keyword is different from the kind that brings classes in a namespace into scope in a class.)


Cover of Pro ASP.NET MVC 5, Fifth Edition


Read more about DIsposing of an Object