How to create or invoke protected constructor of abstract class using reflection?
<p>I am trying to invoke or create instance of abstract class using reflection. Is this possible. This is what I tried, but I get an error saying "Cannot create an instance of abstract class".</p>

<pre><code>Type dynType = myTypes.FirstOrDefault(a =&gt; a.Name == "MyAbstractClass");
ConstructorInfo getCons = 
dynType.GetConstructor(BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[0], null);
object dynamicInstance = getCons.Invoke(null);
</code></pre>

<p><strong>EDIT:</strong> Can I access properties of this abstract class using reflection?</p>
