Reflection, Emit, DescriptionAttribute
Hi,
For two days I'm unsuccessfully investigating the possibility of defining Description attribute, when emiting the class dynamically by means of Reflection namespace methods. I've written the following code for dynamic property creation:
Dim custNamePropBldr As PropertyBuilder = _
myTypeBuilder.DefineProperty(isName, _
PropertyAttributes.HasDefault, _
itType, New Type() {itType})
None of the custNamePropBldr properties gives me chance to set the DescriptionAttribute, or CategoryAttribute as I needed. How to dynamically set these attributes ?
Can somebody help me with this, please ?! Thanx.
|