1
Vote

implement support for 'using' statement blocks

description

using( StreamWriter sw = new StreamWriter("hey.txt") )
{
sw.WriteLine( "hello" );
}
 
should convert to
 
{
StreamWriter sw("hey.txt");
__try
{
sw.WriteLine( "hello" );
}
__finally
{
sw.Dispose();
}
}

comments

JasonNottingham wrote Jun 19, 2009 at 4:35 PM

Note: StreamWriter is just an example. A StreamWriter class is not included in the early Alpha release.

wrote Jun 19, 2009 at 4:42 PM

wrote Jun 20, 2009 at 2:02 AM

wrote Jun 20, 2009 at 8:32 AM

wrote Feb 1, 2013 at 4:23 AM