How to add property-level Attribute to the TypeDescriptor at runtime?

Unlike others have suggested, it’s quite possible, and also not that hard. For example, you want to add some new attributes to some properties, which you can select at runtime based on some criteria. There’re two helper classes we’ll need to implement this. First goes PropertyOverridingTypeDescriptor, it allows us to supply our own property descriptors … Read more