<div class="blazorise-codeblock">
<div class="csharp"><pre>
<span class="keyword">public</span> <span class="keyword">class</span> Attr&lt;T1&gt; : Attribute { }

<span class="keyword">public</span> <span class="keyword">class</span> GenericAttribute
{
    [Attr&lt;<span class="keyword">string</span>&gt;]
    <span class="keyword">public</span> <span class="keyword">void</span> myClass ()
    {

    }
}
</pre></div>
</div>
