My goal is to find out if the class implements the interface directly. In the example below, class B implements IB, and IB implements IA.
How to learn inheritance hierarchy? When we look at a type in Object Explorer, it shows a detailed hierarchy. How can I achieve a similar result?
interface IA { string Member1 { get;set; } } interface IB : IA { string Member2 { get; set; } } class B : IB { public string Member1 { get; set; } public string Member2 { get; set; } }
Reflector screen shot
alt text http://img571.imageshack.us/img571/7485/49211426.png
The screenshot taken from the reflector also shows the hierarchy of interfaces.
How to find out the hierarchy of an interface for a type.
source share