title: IL, emit default constructor call
body: <p>I'm generating new type at runtime, 
  After I've generated default constructor I want to generate another one, with parameters.I'm doing it this way : </p>
  
  <pre><code>cb = tb.DefineConstructor(MethodAttributes.Public | MethodAttributes.SpecialName | MethodAttributes.RTSpecialName,
                      CallingConventions.Standard, new Type[] { typeof(bool) });
  GenConstructorWithParameters(cb, fields, genFields);
  </code></pre>
  
  <p>The problem is, that I am unable to call default constructor from method GenConstructorWithParameters, because CLR does not allow me to write something like this :</p>
  
  <pre><code>gen.Emit(OpCodes.Ldarg_0);        
  gen.Emit(OpCodes.Call, cb.DeclaringType.GetConstructor(Type.EmptyTypes));//Not allowed to call .GetConstructor() on not created type!
  </code></pre>
  
  <p>How do I emit call to default constructor? Is it possible at all?</p>
  
  <p>tb - instance of <code>TypeBuilder</code>, cb - <code>ConstructorBuilder</code></p>