first of all, I want to be clear : I don't know that much on WCF attributes and I'm there to learn about it.
Here is the context : we have a project where we have different forms. Each form contains datas. Some datas are different and some are the same. So we created Structures that are referenced by forms.
Ex : a structure Person contains properties name, age, etc.
Each property has a custom WCF attribute, which specifies the length, if it must be present, etc. Problem is, for some forms, age of a Person is needed, while for others it is not.
Is it possible to change my custom attribute by code when I want, to specify that my custom WCF attribute has now "must be there" or "must not be there" ?
Sorry if I'm not clear enough.
Thanks for reading.