Pascal,
Probably not, because this isn't something that is guaranteed to exist
across languages (the using statement compiles to a try/finally statement
ultimately). You wil have to create the full expansion that the compiler
does.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
<pa*********@hotmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hi,
Is there a way to declare a using statement with the CodeDom?
Something like:
using (obj = new Object())
{
obj.DoSomething;
}
Thanks,
Pascal Pare