 <p>First get the Type object using <code>Type.GetType(stringContainingTheGenericTypeArgument)</code></p> <p>Then use <code>typeof(Repository&lt;&gt;).MakeGenericType(theTypeObject)</code> to get a generic type.</p> <p>And finally use <code>Activator.CreateInstance</code></p>