[Mono-list] AppDomain.CreateInstanceAndUnwrap

Marco Canini marco.canini@fastwebnet.it
Fri, 23 Jan 2004 23:58:04 +0100


I've a question related to AppDomain.CreateInstanceAndUnwrap
Such method invokes Activator.CreateInstance(string, string) which
return an ObjectHandle and when unwrapped the reference to the created
object.
What I don't understand is if the newly created object lives in the
context of the AppDomain (current) from which i called
my2AppDomain.CreateInstanceAndUnwrap or the object lives inside
my2AppDomain context where my2AppDomain != current AppDomain and the
object reference returned in current AppDomain is a proxy to it.
I think it's the first by considering that Activator.CreateInstance is
called from current AppDomain but since the msdn documentation doesn't
help me too much I ask to you guys.
Any help is appreciated.

-- 
Marco Canini <marco.canini@fastwebnet.it>