This project is read-only.

Methods Headers with PDB Reader.

Topics: PDB Reader
Dec 21, 2009 at 2:19 PM

Hello all!

I have a question about PDB Reader. I need to find location of method header in source code.

Is it possible to find such location with CCI pdb infrastructure?

Best regards, Michal.

Dec 21, 2009 at 4:23 PM

That information is simply not captured in the PDB file of a managed language such as C# and VB. Others that have encountered the same issue resort to various parsing heuristics. However, that is rather brittle unless you have a full blown parser that also understands project files. Inside VS the VS Code Model is one way to do this.

Dec 22, 2009 at 7:45 AM

I know that this information is available via CodeModel, but i need to handle a large projects and CodeModel is to heavy for my needs. So, i think that parser is the only way for me :/.

Thank You for the info.