tags:

views:

158

answers:

1

Given an object reference, is it possible to programmatically determine if the object was created in the current appdomain or instead is a proxy to an object in another appdomain?

+2  A: 

Try the following

var isProxy = RemotingServices.IsTransparentProxy(obj);

System.Runtime.Remoting.RemotingServices.IsTransparentProxy

JaredPar
Goodness, I knew it had to be something I was overlooking. I was all over the System.Runtime.Remoting.Proxies namespace, which was just one step too far. Duh. And thanks.
oakskc