News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Discovering Code with the Code Model

Started by thiruvasagamani, May 21, 2009, 12:28 PM

Previous topic - Next topic

thiruvasagamani

Discovering Code with the Code Model

The Visual Studio .NET code model offers automation clients the ability to discover code definitions in a project and modify those code elements. The code model automatically updates any referenced objects when modifications are made in the code editor. For example, if you reference a Class object and a user later adds a new function, it is listed when you iterate the members. The code model allows automation clients to avoid having to implement a parser for Visual Studio .NET languages in order to discover the high-level definitions in a project, such as classes, interfaces, structures, methods, properties, and so on.

The code model avoids language-specific areas of code, so it does not, for example, provide an object model for statements in functions or give full details on parameters. For parameters, the code model exposes only the type and name of the parameter, and no information is provided about whether the parameter is input, output, optional, and so forth.

Source : MSDN
Thiruvasakamani Karnan