ChannelFactory<T> factory = ...;
var channel = factory.CreateChannel();
channel.GetType().IsInterface; // true -> what? an instance of interface?
channel is IClientChannel; // true
channel.GetType().GetInterfaces(); // empty array -> so does it really implement IClientChannel or does it not?
Please take a look at the provided code sample.
I know that WCF dynamically compiles __TransparentProxy
but how can it hide a type of channel
so that object looks like an instance of an interface?
How could one obtain real type of channel
and list of interfaces it actually implements?