Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 检测透明代理与实际对象引用?_C#_.net_Remoting - Fatal编程技术网

C# 检测透明代理与实际对象引用?

C# 检测透明代理与实际对象引用?,c#,.net,remoting,C#,.net,Remoting,给定对象引用,是否可以通过编程确定该对象是在当前appdomain中创建的,还是作为另一appdomain中对象的代理?请尝试以下操作 var isProxy = RemotingServices.IsTransparentProxy(obj); 天哪,我知道这一定是我忽略的东西。我浏览了System.Runtime.Remoting.Proxies名称空间的所有内容,这只不过是太远了一步。嗯。谢谢。

给定对象引用,是否可以通过编程确定该对象是在当前appdomain中创建的,还是作为另一appdomain中对象的代理?

请尝试以下操作

var isProxy = RemotingServices.IsTransparentProxy(obj);

天哪,我知道这一定是我忽略的东西。我浏览了System.Runtime.Remoting.Proxies名称空间的所有内容,这只不过是太远了一步。嗯。谢谢。