标签: c# .net remoting
给定对象引用,是否可以通过编程方式确定对象是在当前appdomain中创建的,还是代理另一个appdomain中的对象?
答案 0 :(得分:8)
尝试以下
var isProxy = RemotingServices.IsTransparentProxy(obj);
System.Runtime.Remoting.RemotingServices.IsTransparentProxy