getting rid of redundant type parameters
<p>I have a generic class A, and another class B that handles instances of A and contains some additional data. I need to have two separate classes. B can't inherit from A, because A has other derivatives, B needs to contain a reference to an A.</p>

<p>As a simple example, what I would like to write is this (dictionary is A, dicthandler is B):</p>

<pre><code>class dicthandler&lt;T&gt; where T : Dictionary&lt;Tk, Tv&gt;
</code></pre>

<p>But it doesn't compile, I need to specify all type parameters:</p>

<pre><code>class dicthandler&lt;T, Tk, Tv&gt; where T : Dictionary&lt;Tk, Tv&gt;
</code></pre>

<p>But I actually don't care what Tk and Tv is, so they are completely redundant, I just need T. Whenever I want to create a new instance, I need to specify all type parameters for the constructor, which hurts me.</p>

<p>So clearly I need some tricks. Any ideas?</p>
