Hi,
I have an interface like that:
public interface IViewA : IViewB, IViewC
{
byte prop { get; set; }
}
and I have a generic method like that:
public void OpenPopup<T>(WindowState state)
{
if ((typeof(T) as IViewC)!=null)
{
//Process A
}
else
{
//Process B
}
}
Although I send T as an interface which derives from IViewC, Process A is not being processed.
So how to learn at runtime via reflection whether an interface derives from other interface?
thanks