Attributes helps us use class dependant values instead of instances and they help us carry some values without strong relation with our classes. But i found some restrictions on attributes. We are not able to change these values on runtime. So i am looking a way to use similiar concept to attributes as we have seen many example configure classes by fluent apis instead of attributes. Do you know such a ready library ? What is an alternative to use attribute concept for avoiding attribute restrictions ?
Attributes helps us use class dependant values instead of instances and they help us
Share
Actually in some cases you can tweak attributes at runtime – for example via
TypeDescriptor– but this only affects ComponentModel usage, not reflection usage. You can also write the attribute itself to do things like resx lookup for i18n purposes.But other options:
Any will work; which is best depends on exactly what you have in mind.