Vitor wrote:
Ok thanks. It seems the above code works fine for C#, just not VB.
Correct, as vb.net as you stated, requires direct connection between teh attribute line and the code line... I'm sorry.
If the properties are generated by llblgen pro, you can't apply the attributes to them through the usercode region. Though even then, the usercode regions specified in the class now, don't offer you to specify attributes on ALL generated properties. The example you gave is not very helpful in this, sorry.
If the properties are written by you, you should be able to add the attributes to the properties. That's why I'm confused why it doesn't work.
Could you please paste REAL code, and please specify where exactly you want to apply the custom attributes. The small snippet you gave is very confusing as it shows the 'AdditionalInterfaces' region, which has nothing to do with properties