Hallo
I have an object like below and i want to get or check only the property which has description attribute. I can loop through like below but dont know how to check for the property with description attribute.
Public Class Sample
Public Property ID as integer
<Description("Descr1")>Public Property Val1 as integer
<Description("Descr1")>Public Property Val2 as integer
End Class
For Each prop In obj.GetType().GetProperties
'//print only property with description attributes
Next
Thanks