title: Unable to recognize Dictionary object through Reflection
body: <p>I am playing with Reflections and stopped with the next problem.</p>
  
  <p>I can't recognize that the object is of the Dictionary&lt;,> Type.</p>
  
  <p>I receive PropertyInfo from Top object, and this property is of Dictionary&lt;,> class for sure.</p>
  
  <p>Then I do the next:</p>
  
  <pre><code> if (pi.PropertyType.IsGenericType &amp;&amp; pi.PropertyType == typeof(IDictionary&lt;,&gt;))
  </code></pre>
  
  <p>or</p>
  
  <pre><code> if (pi.PropertyType.IsGenericType &amp;&amp; pi.PropertyType == typeof(KeyValuePair&lt;,&gt;))
  </code></pre>
  
  <p>and in both cases the second comparision's without success.</p>
  
  <p>Does anyone know another way to 100% recognize a Dictionary Type object?</p>