4 .net c# proxy marshalling marshalbyrefobject
我知道有一种方法,我知道我已经做了很长时间(很长一段时间),但我记不起来了解怎么做!
var otherDomain = AppDomain.Create("Lol my memory sucks");
var myRemotableType = typeof(MyTypeThatExtendsMBRO);
var proxy = otherDomain
.CreateInstanceAndUnwrap(
type.Assembly.FullName,
type.FullName);
// how do you do this next step???
bool isProxy = IsYouIsOrIsYouAintAProxy(proxy);
Run Code Online (Sandbox Code Playgroud)