Is it possible to get Class attributes? C#
<p>I have a class which is using generics. This class do some operation which need serialization. So the class which will be given to myClass must hold the attribute [Serializable()]. Is it possible to request a class which attributes it holds? In best case at design time.</p>

<pre><code>    [Serializable()]
    public class clsSchnappschuss&lt;T&gt;
    {
      //Some operations which need serialization
    }
</code></pre>

<p>So if someone uses clsSchnappschuss he must give the DataType (T) and i want to request that T implements [Serializable()]. Is this possible?</p>

<p>regards</p>
