[Mono-list] Re flection error

Chris Howie cdhowie at gmail.com
Thu Oct 30 12:09:45 EDT 2008


On Thu, Oct 30, 2008 at 7:03 AM, Matthijs ter Woord
<matthijsterwoord at gmail.com> wrote:
> Hello,
>
> I have an assembly analysis tool which uses rreflection to inspect the
> assemblies. On Windows + .NET this tool work very nice. Now I want to run
> this tool on mono too (for now just on Windows) but i'm experiencing issues.
>
> The tool also inspects the method bodies. for getting references to the
> MethodInfo instances etc, I use Module.ResolveMethod. However, this method
> throws an exception when the method is in a generic class (ie,
> System.Collections.List<int>.Add(..) )
>
> Is this a known (and intended) limitation? or is it a thusfar undiscovered
> bug?

Is it possible that you're compiling and running using the 1.1
framework (by using mcs to compile) instead of using the 2.0 framework
(gmcs)?

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list