Constraints on Type Parameter only elements which occur in an array of types
<p>I have this code:</p>

<pre><code> Type[] typList = GetAllTypesFromAssembly(Assembly.LoadFile("aaaa.dddd.dll"));
</code></pre>

<p>And this statement, which matches if my desired type will be in that list:</p>

<pre><code>typeList.Contains(typeof(T));
</code></pre>

<p>Now I want change the constraints on my type parameter to something like this:</p>

<pre><code>public byte[] resultA&lt;T&gt;(string some, T myCustomGenericParameter) : where typeList.Contains(typeof(T));
</code></pre>

<p>How to do it correctly ?</p>