Like this typeof(GenericRouteHandler<>).MakeGenericType(typeof(MemberHandler));
Of course, if you don't have types, you should use Type.GetType(string)to get the type instead typeof.
EDIT : then you need to activate the type Activator.CreateInstance()or call the constructor if you know the signature myGenericType.GetConstructor(ctorArgsTypes).Invoke(ctorParams);; it can be faster if cache constants can be faster than Activator.CreateInstance ()
msdn
source
share