给定一个对象引用,是否可以以编程方式确定对象是在当前appdomain中创建的,还是代理另一个appdomain中的对象?
请尝试以下方法
var isProxy = RemotingServices.IsTransparentProxy(obj);
Run Code Online (Sandbox Code Playgroud)
System.Runtime.Remoting.RemotingServices.IsTransparentProxy
| 归档时间: |
|
| 查看次数: |
1343 次 |
| 最近记录: |