How to use nested dictionary in C#?
<pre><code>Dictionary&lt;outerString, Dictionary&lt;innerString, List&lt;SelectListItem&gt;&gt;&gt;
</code></pre>

<p>When I try to get the value of the inner Dictionary using key(outerString), it gives an error saying "cannot apply indexing with type of expression...............".</p>

<p>I have tried this</p>

<pre><code>Dictionary&lt;outerString, Dictionary&lt;innerString, List&lt;SelectListItem&gt;&gt;&gt; dict1 = new
    Dictionary&lt;outerString, Dictionary&lt;innerString, List&lt;SelectListItem&gt;&gt;&gt;;

Dictionary&lt;innerString, List&lt;SelectListItem&gt;&gt; dict2 = dict1.values["outerString"];
</code></pre>

<p>Any quick help will be greatly appreciated.</p>

<p>Thx in advance.</p>
