I would like to get the Type for an dynamic object, something like:
dynamic tmp = Activator.CreateInstance(assembly, nmspace + \".\" + typeName);
Type unknow
If you can use Activator.CreateInstance, you can directly use:
object tmp = Activator.CreateInstance(assembly, nmspace + "." + typeName);
Type unknown = tmp.GetType();
You need to do this...
Type unknown = ((ObjectHandle)tmp).Unwrap().GetType();
By the way, this is a little confusing because if you call Activator.CreateInstance on a type in your current assembly...
Activator.CreateInstance(typeof(Foo))
...the object is not wrapped and the original code works fine.