Hey,

On Tue, May 18, 2010 at 3:18 AM, treefirmy <[email protected]> wrote:
> How should one go about getting the file name and line number of the
> elements, types, methods, etc., in an assembly?

A pdb doesn't hold such information. It just maps IL instructions to
sequence points in a document.

> After reading through various posts it looks like an ISymbolReader can
> be passed to a ModuleDefinition but I'm not sure where to go from
> there. Little help?

That's not needed if you pass a proper SymbolReaderProvider to the parameters.

>                ISymbolReader symbolReader =
> parameters.SymbolReaderProvider.GetSymbolReader(module,
> symbolFilePath);
>                module.ReadSymbols(symbolReader);

That's not needed.

Then an Instruction may or may not have a SequencePoint associated with.

-- 
Jb Evain  <[email protected]>

-- 
--
mono-cecil

Reply via email to