Remoting - Is an object remote?

If(System.Runtime.Remoting. RemotingServices. IsTransparentProxy(myObject)) Console.

WriteLine("Yay - my object is a remoted object. "); else Console. WriteLine("Boo - my object is not a remoted object.") MSDN Docs on IsTransparentProxy.

If(System.Runtime.Remoting. RemotingServices. IsTransparentProxy(myObject)) Console.

WriteLine("Yay - my object is a remoted object. "); else Console. WriteLine("Boo - my object is not a remoted object."); MSDN Docs on IsTransparentProxy.

I voted for this answer because it provides the MSDN documentation link about a specific FCL method, and I like to see the thoughts of the framework creators referenced. Other options might exist but Microsoft explicitly accommodated this method. – John K Nov 2 '09 at 21:01.

I suppose you could look at the proxy and see if it derived from TransparentProxy var myObj = ....; if(myObj is TransparentProxy) Console. WriteLine("I have a remote object"); else Console. WriteLine("I don't think I have a remote object").

TransparentProxy seems to be an internal class and, well, very transparent. – eWolf Nov 2 '09 at 20:41.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions