title: Mono.Cecil get constructor for TypeReference
body: <p>I'm trying to create a <code>List&lt;Simple&gt;</code> using Mono.Cecil.  I have a <code>TypeReference</code> for this, but I'm not able to produce the correct results.</p>
  
  <p>Given:</p>
  
  <pre><code>var listOfObjConstructor = this.ModuleDefinition.Import(listRef
      .Resolve().GetConstructors()
      .FirstOrDefault(c =&gt; (null == c.Parameters) || (0 &gt;= c.Parameters.Count)));
  </code></pre>
  
  <p><code>listOfObjConstructor</code> is </p>
  
  <pre><code>System.Void System.Collections.Generic.List`1::.ctor()
  </code></pre>
  
  <p>The IL I'm trying to produce is for </p>
  
  <pre><code>instance void class [mscorlib]System.Collections.Generic.List`1&lt;class AssemblyToProcess.Simple&gt;::.ctor()
  </code></pre>
  
  <p>What do I need to do to create a new list object of the correct type?</p>