title: How to get the type of a dynamic object in C#?
body: <p>I have a <code>List&lt;dynamic&gt;</code> and I need to pass the values and type of the list to a service. 
  The service code would be something like this:</p>
  
  <pre><code> Type type = typeof(IList&lt;&gt;);
   // Type genericType = how to get type of list. Such as List&lt;**string**&gt;, List&lt;**dynamic**&gt;, List&lt;**CustomClass**&gt;
   // Then I convert data value of list to specified type.
   IList data = (IList)JsonConvert.DeserializeObject(this._dataSourceValues[i], genericType);
  </code></pre>
  
  <p>_dataSourceValues: values in the list</p>
  
  <p>How can I cast the type of the list to a particular type if the type of List is dynamic (<code>List&lt;dynamic&gt;</code>)?</p>