On 7/19/07, Wicky <[EMAIL PROTECTED]> wrote:
> I tried the CustomAttribute.Resolve method, it resolves
> DayOfWeek.Friday to 5 (int).
>
> So I still cannot know the type (System.DayOfWeek) from
> CustomAttribute class after calling Resolve method.
>
> It there any way to get the type definition/reference of
> System.DayofWeek?
> (Indeed it's in internal CustomAttrib class, but I cannot find it in
> CustomAttribute class).

Right now, you can't. Maybe in the future, on Resolve, Cecil will
actually Load the assembly declaring the enumeration, and put a boxed
enumeration in the Parameters.

I need to think about that.

-- 
Jb

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

Reply via email to