[Ironruby-core] IronRuby idiom for using (IDisposable) ?

Thibaut Barrère
Mon, 01 Feb 2010 09:03:28 -0000

Hello,

Is there a built-in way to achieve what C# ''using'' does, with
IronRuby ?

Although it''s pretty easy to roll your own (
http://myotherpants.com/2009/09/disposable-code), I''d like to use the
built-in way if there''s one.

thanks!

-- Thibaut
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/ironruby-core/attachments/20100201/96fb9e55/attachment.html>