Using Visual Studio’s Code Model objects for code base understanding

A bit of a diversion from the normal SQL Server posts.Recently I’ve found a very useful feature in Visual Studio that can help to analyze large amounts of source code – the Visual Studio Code Model objects

Depending on the language of the code base a different set of objects are available to you.In this example I’ve used the VCCodeModel to walk through all the code elements of a C++ project.