Um. Actually I don't really understand why you need this. The whole
sense of an interface is that you don't need to know the class that is
implementing it. If you want to see if it is an implementation of the
certain interface in some kind, just write:

if (thing is IAuthoredBy)
{
  // it is implementing the interface...
}

or

IAuthoredBy authoredBy = thing as IAuthoredBy;
if (authoredBy != null)
{
  // use authoredBy
}


On 7 Apr., 13:59, Iain Waddell <[email protected]> wrote:
> > 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
>
> Sorry, I was looking at the wrong GetInterfaces() help. I don't find the
> latest MSDN help nearly as intuitive as earlier versions.
>
> Iain
--~--~---------~--~----~------------~-------~--~----~
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