Beyond the basic project attributes and items, one of the cooler things that can be accessed via a
Project instance is the actual code within the project’s source files. Through the
CodeModel property, you can access an entire line of proxy objects representing the code constructs within a project. For instance, the
CodeClass interface enables you to examine and edit the code for a given class in a given project.
Support for the different
CodeModel entities varies from language to language. The Microsoft Developer Network (MSDN) documentation for each
CodeModel type clearly indicates the source language support for that element.
After grabbing a
CodeModel reference from a
Project instance, you can access ...