I have an interface like this:
public interface IViewA : IViewB, IViewC
{
byte prop { get; set; }
}
and I have a general method:
public void OpenPopup<T>(WindowState state)
{
if ((typeof(T) as IViewC)!=null)
{
}
else
{
}
}
Although I am sending T as an interface that comes from IViewC, process A is not processed.
So, how to learn at runtime through reflection, does an interface flow from another interface?
thank
source
share