In my reflection code i hit a problem with my generic section of code. Specifically when i use a string.
var oVal = (object)\"Test\"; var oType = oVal.GetType();
String actually has no constructor that takes a string as input. There is a constructor that takes a char array so this should work:
var sz = Activator.CreateInstance ("".GetType (), "Test".ToCharArray ());