Pass a list of types as Generic parameter
<p>I was wondering if I could pass a List of types as generic parameter.
I have a class which needs to get indefinite number of types and work with them.
<strong>something like this:</strong></p>

<pre><code>class o&lt;TTypeCollection&gt;
{
    private void someMethod()
    {

        repository.Save &lt; TTypeCollection.First() &gt; (MyCollectionViewSource.CurrentItem as TTypeCollection.First());

    }
}
</code></pre>
