As far as I know there is no way to get the interface used from the
internals of the proxy itself since DynamicProxy doesn't store this
information.

I cannot see where MSDN says not to use GetInterfaces(). Just don't assume
it is the first once since the proxy will also implement ISerializable and
IProxyTargetAccessor.

http://msdn.microsoft.com/en-us/library/system.type.getinterfaces.aspx

On Tue, Apr 7, 2009 at 9:30 PM, Iain Waddell <[email protected]> wrote:

> Would something like: filterMock.GetType().GetInterfaces()[0] work?
>
>
> I considered using it but wasn't sure that the first index would always be
> the correct interface. I consulted the documentation of GetInterfaces() and
> it states it's not for use from managed code.
>
> Have you ever used GetInterfaces()?
>
>
> Iain
>
> >
>


-- 
Jono

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RhinoMocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to