I think I will have to iterate through PropertyDefinition for the properties separately using typeDefinition.Properties. If I do that, I get the HasCustomAttribute true for property. Is that what you were doing too? If I retrieve the properties through TypeDefinition.Methods, I get get_Property and set_Property methods. But maybe since they do not have the custom attribute on these individual methods (but on the property as a whole), it returns false..
On Jul 25, 10:58 am, Jb Evain <[email protected]> wrote: > Hi, > > On Mon, Jul 25, 2011 at 6:50 PM, deedee <[email protected]> wrote: > > [XYZ] > > public virtual bool Property1 > > { > > get { return true; } > > } > > Weird. I can not reproduce the issue here. Please provide a self > contained solution which reproduces your error. > > Thanks! > > Jb -- -- mono-cecil
