I have three attributes that I need to apply to a lot of fields in a class. The code looks like this:
[AAttribute, CAttribute, CAttribute]
private string fieldName;
Is it possible to define another attribute (for example DAttribute
) that applies the effect of the other 3 attributes? So I can reduce the boilerplate and convert the code to something like this:
[DAttribute]
private string fieldName;