public interface IBar {} public interface IFoo : IBar {} typeof(IFoo).BaseType == null
How can I get IBar?
Type[] types = typeof(IFoo).GetInterfaces();
Edit: If you specifically want IBar, you can do:
Type type = typeof(IFoo).GetInterface("IBar");