I have class and properties in there. Some properties can be marked attribute (it\'s my LocalizedDisplayName inherits from DisplayNameAttribute).
T
It's probably easiest to use IsDefined:
var properties = type.GetProperties()
.Where(prop => prop.IsDefined(typeof(LocalizedDisplayNameAttribute), false));
To get the values themselves, you'd use:
var attributes = (LocalizedDisplayNameAttribute[])
prop.GetCustomAttributes(typeof(LocalizedDisplayNameAttribute), false);