I problem I encounted recently was where I needed to issue a delete statement. E.g.
There is only Type.DeleteField support in Script# which allows deleting of a field on an object, but there is no way of outputing a simple local scope delete statement.
I orignally used:
This worked fine for debug scripts, however when using the release scripts that are minified, of course the variable xmlDoc is output as something like $1_0 and so the literal statement fails.
After some research I found that the following statement works:
Hope this helps.