get the Type for a object declared dynamic

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)