How To Detect If Type is Another Generic Type
<p>example:</p>

<pre><code>public static void DoSomething&lt;K,V&gt;(IDictionary&lt;K,V&gt; items) {
   items.Keys.Each(key =&gt; {
      if (items[key] **is IEnumerable&lt;?&gt;**) { /* do something */ }
      else { /* do something else */ }
}
</code></pre>

<p>Can this be done without using reflection? How do I say IEnumerable in C#? Should I just use IEnumerable since IEnumerable&lt;> implements IEnumerable? </p>
