Totally agree with you on all points. You actually captured them all pretty nicely

The problem we have is that this code is both generated and later parsed by the CodeDOM parser which is a very primitive code parser / generator. Revamping that parser is quite an undertaking. Part of the large architectural changes we're currently planning (which were mentioned in other posts) will eventually phase out these very rudimentary parsers.

The bottom line is, you will not see this get better in Orcas; but we're working on the root cause of the problem.

Thanks,
Tarek Madkour
Lead Program Manager
Microsoft Visual C++