Calling GetType on service interface causes invoke?

75 Views Asked by At

I have a very basic interface for several services. Doing something like:

private static void Test(IService svc)
{
     var test = svc.GetType();
}

while passing in an instance of a remote service that inherits from IService causes the RealProxy Invoke method to be fired.

Why?

1

There are 1 best solutions below

0
On BEST ANSWER