Check out RemotingServices.IsTransparentProxy. From the docs:
// Checks whether the object is a proxy, since it is context-bound.
if (RemotingServices.IsTransparentProxy(sampSyncObj))
Console.WriteLine("sampSyncObj is a proxy.");
else
Console.WriteLine("sampSyncObj is NOT a proxy.");
Jason
> -----Original Message-----
> From: Discussion of the Rotor Shared Source CLI implementation
> [mailto:[EMAIL PROTECTED] On Behalf Of Ezequiel
Alaba�a
> Sent: Monday, March 10, 2003 5:23 AM
> To: [EMAIL PROTECTED]
> Subject: [DOTNET-ROTOR] Arguments
> Importance: High
>
> Dear all,
>
> Can I know if a reference to an object passed as an argument is local
or
> remote when I invoke one method?
>
> I suppose that I can use reflection but the references are
> system.runtime type.
>
> Thanks in advance.
>
>
>
> Ezequiel Alaba�a
> ----------------------------------------------
> INESC-ID Lisboa
> Portugal