title: How to get the type contained in a collection through reflection
body: <p>In some part of my code I am passed a collection of objects of type <code>T</code>. I don't know which concrete colletion I will be passed, other than it impements <code>IEnumerable</code>.</p>
  
  <p>At run time, I need to find out which type T is (e.g. <code>System.Double</code>, <code>System.String</code>, etc...).</p>
  
  <p>Is there any way to find it out?</p>
  
  <p><strong>UPDATE</strong>: I should maybe clarify a bit more the context I am working in (a Linq Provider).</p>
  
  <p>My function has a signature like the following, where I get the type of the collection as  a parameter:</p>
  
  <pre><code>string GetSymbolForType(Type collectionType)
  {
  
  }
  </code></pre>
  
  <p>Is there any way from <code>collectionType</code> to get the contained objects type?</p>