views:

126

answers:

2

I know about DIA api, dbghelp. But can i use them to extract type definition location info such as file, begin_line, begin_column, end_line, end_column from my assembly and pdb generated?

If the answer is yes, can someone point me to the simple example out there?

+1  A: 

You could take a look at the Common Compiler Infrastructure - Metadata project on codeplex. It can read pdb files, but there's no way I can see of getting a source location for a class, just members.

marklam
+1  A: 

The answer is yes, Look at Mono.Cecil

Krzysztof Koźmic