title: How to check if specific dictionary is of generic dictionary type in c#?
body: <p>The generic dictionary is as follows:</p>
  
  <pre><code>public class ConcurrentDictionary&lt;TKey, TValue&gt; : IDictionary&lt;TKey, TValue&gt;
  </code></pre>
  
  <p>And specific dictionaries can be as follows:</p>
  
  <pre><code>var container = new ConcurrentDictionary&lt;string, Unit&gt;();
  var container = new ConcurrentDictionary&lt;string, CustomUnitClass&gt;();
  </code></pre>
  
  <p>So, how can I check if some dictionary is of generic dictionary type?</p>
  
  <pre><code>object obj = GetObj(); // obj is some of many dictionaries
  if(obj is ?)
  </code></pre>
  
  <p>Thank you in advance.</p>