title: Dictionary and getting a type of value
body: <p>I have a class that contains something like this <code>Dictionary&lt;int, Queue&lt;string&gt;&gt; dict</code> and then I use <code>TryGetValue</code>:</p>
  
  <pre><code>Queue&lt;string&gt; value;
  if (!dict.TryGetValue(3, out value))
      throw new MyException("...");
  </code></pre>
  
  <p>Is there an option not to explicitly define the value type, basically to avoid duplicity of typing it? In C++ STL containers, there is a value typedef <code>value_type</code> which can be used in such cases but I can't seem to find similar feature in C#. Thanks. </p>