interfaceGraph

Returns all the interfaces that this type directly implements, including inherited interfaces. This is an expensive operation. *

ConstClassInfo[]
interfaceGraph
(
in ClassInfo type
)

Examples

1 interface I1 {}
2 interface I2 : I1 {}
3 class A : I2 {}
4  *
5 auto interfaces = interfaceGraph (A.classinfo);
6 // interfaces = [I1.classinfo, I2.classinfo]

*

1 interface I1 {}
2 interface I2 {}
3 class A : I1 {}
4 class B : A, I2 {}
5  *
6 auto interfaces = interfaceGraph (B.classinfo);
7 // interfaces = [I2.classinfo]

Meta