Hi,

I would like to read/write CustomAttribute, but I found
CustomAttribute class doesn't include all necessary information.

For example, this simple class:

    public class Class1
    {
        [DefaultValue(DayOfWeek.Friday)]
        public DayOfWeek TestProperty
        {
            get { return DayOfWeek.Friday; }
        }
    }

When I loaded the CustomAttributes collection of TestProperty, I
couldn't find any thing about the type DayOfWeek. And then I traced
into Cecil, I found a internal class CustomAttrib which contain the
related assembly and type reference information (ElemType).

May I ask why Cecil doesn't expose such useful information?
Or I missed something?

Thanks.

Regards
Wicky


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

Reply via email to