The using statement ensures that the resource is disposed of when the block of code is exited.
using
This construct requires the Hyperbee.XS.Extensions package.
Hyperbee.XS.Extensions
using (var resource = new Resource()) { resource.DoSomething(); }