In AppDomain A
I have an object o
of type T
. T
is neither Serializable
nor derived from MarshalByRefObject
. Type T
is provided by a plugin host over which I have no control.
I would like to create an AppDomain B
and pass a proxy to o
to a method in B
, but am stumped: How to create the proxy?
The method in B
should be able to invoke methods on o
and read properties etc. The results of these methods will have to be proxied in a similar fashion.