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?
Try the following
var isProxy = RemotingServices.IsTransparentProxy(obj);
System.Runtime.Remoting.RemotingServices.IsTransparentProxy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With