Create Attribute to represent multiple sub attributes in C#
<p>I have the following type of code sample across one of my projects...</p>

<pre><code>    [Obfuscation(Exclude = true)]
    [UsedImplicitly]
    public DelegateCommand&lt;object&gt; OpenXCommand { get; private set; }
</code></pre>

<p>I am finding the attributes are adding a lot of "noise" to the code - I also see it in a way violating the DRY principle since I may have several properties like this in one class, all with the same attribute decoration. </p>

<p><strong>Q: Is there some way I can set up an attribute that will represent a combination of sub attributes?</strong></p>

<p>Ideally I would like something that looks like this..</p>

<pre><code>    [MyStandardCommandAttribute]
    public DelegateCommand&lt;object&gt; OpenXCommand { get; private set; }
</code></pre>

<p>I have not implemented my own attributes before so I am unsure if this is possible. Any suggestions?</p>
