On Fri, Jul 2, 2010 at 4:42 PM, richa <[email protected]> wrote: > My query. Is it difficult to get a MethodInfo?
Difficult, no. Tedious, yes. > Mono has a MonoMethodInfo and MonoMethod class in MonoMethod.cs > MonoMethod inherits from MethodInfo class. > Now if you look at the Mono source in the MonoMethod.cs, they have a > method called get_method_info() or something very close to it which is > a native method declared in Reflection.c file. Mono.Cecil is platform agnostic. Those are unexposed implementation details of Mono. > So don't you think it could be wonderful if we too have it in this > great library Cecil :-) Actually, not really. As Fabian suggested, if you need to use SRE, you're better off with SR in a first place. If you absolutely need to use Cecil instead of SR, you'll have to retrieve the MethodInfo, and sometimes constructs them, (for methods on generic types and generic methods) yourself. -- Jb Evain <[email protected]> -- -- mono-cecil
