Generating/wrapping using block for a function in C#

Topics: APIs, C# Language Design, General
Jul 23, 2014 at 11:04 AM
Hi,
Is it possible to create a using statement and wrap it in an already existing code?
void Function(params)
{
...
}
to
void Function(params)
{
using(var obj = new SomeClass())
{
 ....
}
}

with the help of Roselyn..?