title: How can I call the constructor?
body: <p>I dynamically create instances of my objects in the custom linq provider I am building using this call:</p>
  
  <pre><code> object result = Activator.CreateInstance(typeof(T));
  </code></pre>
  
  <p>My T type implements an abstract class that has a constructor to take an instance of another object (T is essentially a wrapper). My question is - is there a way I can explicitly call the non-default constructor so I can get rid of this:</p>
  
  <pre><code> MyEntity entity = result as MyEntity;
   if(entity != null)
      entity.UnderlyingEntity = e; //where e is what I am wrapping 
  </code></pre>