I am quite sure that you cannot do what you are trying for several reasons. You are trying to let a string be a type and furthermore you try to typecast it directly in the instantiation. Where have you seen this? Or is it something you have come up with yourself?
I don't know if it is possible in your case, but I use Activator.CreateInstance for a plug-in module I have done previously. You might want to check that one out.
Hope it helps and it is correct, Jacob ;)
|