@@ -81,7 +81,7 @@ public static void Dump(this TypeInfoCollection target)
8181
8282 public static void DumpAncestor ( this TypeInfo target , int indent )
8383 {
84- TypeInfo ancestor = target . GetAncestor ( ) ;
84+ TypeInfo ancestor = target . Ancestor ;
8585 if ( ancestor != null )
8686 WriteLine ( indent + 1 , "Ancestor: " + ancestor . Name ) ;
8787 else {
@@ -92,8 +92,8 @@ public static void DumpAncestor(this TypeInfo target, int indent)
9292 public static void DumpDescendants ( this TypeInfo target , int indent )
9393 {
9494 WriteLine ( indent , "Descendants:" ) ;
95- HashSet < TypeInfo > direct = new HashSet < TypeInfo > ( target . GetDescendants ( ) ) ;
96- foreach ( TypeInfo descendant in target . GetDescendants ( true ) ) {
95+ HashSet < TypeInfo > direct = new HashSet < TypeInfo > ( target . DirectDescendants ) ;
96+ foreach ( TypeInfo descendant in target . AllDescendants ) {
9797 if ( direct . Contains ( descendant ) )
9898 WriteLine ( indent + 1 , descendant . Name + " (direct)" ) ;
9999 else
@@ -104,8 +104,8 @@ public static void DumpDescendants(this TypeInfo target, int indent)
104104 public static void DumpInterfaces ( this TypeInfo target , int indent )
105105 {
106106 WriteLine ( indent , "Interfaces:" ) ;
107- HashSet < TypeInfo > direct = new HashSet < TypeInfo > ( target . GetInterfaces ( ) ) ;
108- foreach ( TypeInfo @interface in target . GetInterfaces ( true ) ) {
107+ var direct = target . DirectInterfaces ;
108+ foreach ( TypeInfo @interface in target . AllInterfaces ) {
109109 if ( direct . Contains ( @interface ) )
110110 WriteLine ( indent + 1 , @interface . Name + " (direct)" ) ;
111111 else
@@ -116,8 +116,8 @@ public static void DumpInterfaces(this TypeInfo target, int indent)
116116 public static void DumpImplementors ( this TypeInfo target , int indent )
117117 {
118118 WriteLine ( indent , "Implementors:" ) ;
119- HashSet < TypeInfo > direct = new HashSet < TypeInfo > ( target . GetImplementors ( ) ) ;
120- foreach ( TypeInfo implementor in target . GetImplementors ( true ) ) {
119+ HashSet < TypeInfo > direct = new HashSet < TypeInfo > ( target . DirectImplementors ) ;
120+ foreach ( TypeInfo implementor in target . AllImplementors ) {
121121 if ( direct . Contains ( implementor ) )
122122 WriteLine ( indent + 1 , implementor . Name + " (direct)" ) ;
123123 else
@@ -163,10 +163,10 @@ public static void Dump(this TypeInfo target, int indent)
163163 if ( target . IsEntity ) {
164164 WriteLine ( indent , "Hierarchy: " + target . Hierarchy . Root . Name ) ;
165165 if ( target . Hierarchy . Root != target )
166- WriteLine ( indent , "Ancestor: " + target . GetAncestor ( ) . Name ) ;
166+ WriteLine ( indent , "Ancestor: " + target . Ancestor . Name ) ;
167167 }
168168 else if ( target . IsInterface ) {
169- WriteLine ( indent , "Implementors: " + target . GetImplementors ( ) . Select ( t => t . Name ) . ToCommaDelimitedString ( ) ) ;
169+ WriteLine ( indent , "Implementors: " + target . DirectImplementors . Select ( t => t . Name ) . ToCommaDelimitedString ( ) ) ;
170170 }
171171
172172 target . DumpMappingName ( indent ) ;
0 commit comments