[Mono-list] Enhancements to type-reflector

Gonzalo Paniagua Javier gonzalo@ximian.com
02 Sep 2002 18:34:07 +0200


El lun, 02-09-2002 a las 18:22, Jonathan Pryor escribió:
> Nice program.  Yeah, I was thinking of something like that.  However, it
> doesn't seem to find all attributes.   For example, ``mono getattrs.exe
> System.AppDomain'' only finds ``MonoTODOAttribute''s.  It doesn't find
> the ``MethodImplAttribute'' declared on Unload and SetData.  I didn't
> look into why that would be the case.

The MethodImplAttribute affects the method definition. So Unload is
defined in IL as:

method public hidebysig static void Unload (class System.AppDomain
domain) cil managed internalcall.

That's why getattrs does not find the attribute ;-).

-Gonzalo