On Mar 5, 5:52 pm, parez <psaw...@gmail. comwrote:
I have interface IAbc,IDef
>
and interface IXyz inherits/implements(what is the right word) IAbc
and IDef
>
if i reflect the type IXyz it only shows me the members of IXyz and
not IAbc and IDef.
>
Why?
>
TIA
Let me see if I understand this:
You have an interface named IXYZ that implements IABC and IDef
On Mar 5, 5:52 pm, parez <psaw...@gmail. comwrote:
>
I have interface IAbc,IDef
>
and interface IXyz inherits/implements(what is the right word) IAbc
and IDef
>
if i reflect the type IXyz it only shows me the members of IXyz and
not IAbc and IDef.
>
Why?
>
TIA
>
Let me see if I understand this:
You have an interface named IXYZ that implements IABC and IDef
>
public interface IABC
{
void MethodFromABC() ;
>
}
>
public interface IDef
{
void MethodFromIDef( );
>
}
>
public inteface IXYZ : IDef, IABC
{
void MethodFromIXYZ( );
>
}
>
Running reflection against IXY only returns MethodFromIXYZ( )?
>
Is that correct?
I have interface IAbc,IDef
>
and interface IXyz inherits/implements(what is the right word) IAbc
and IDef
>
>
if i reflect the type IXyz it only shows me the members of IXyz and
not IAbc and IDef.
>
Why?
Because you didn't use BindingFlags.Fl attenHierarchy
Comment