Hey Fabian,

On 7/23/07, Fabian Schmied <[EMAIL PROTECTED]> wrote:
> Well, this should probably not be discussed here, but I just want to
> mention that if your performance problems are in GetCustomAttributes,
> there might also be an alternative in the System.Reflection namespace:
> the CustomAttributeData class should be somewhat faster because it
> doesn't instantiate the attribute instances. Instead, it only provides
> a view on the metadata, similar to what Cecil does, I suppose.

It's a 2.0 only feature right? I guess NUnit have to be 1.1 compatible.

> Is there any experience with building such a helper? I suppose after
> loading the assembly, a simple Module.ResolveXXX
> (mdTokenSuppliedByCecil) should work to get a Type or MethodInfo for
> any given type or method token, right?

Yeah, that works perfectly.

-- 
Jb

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to