Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetHierarchyDepth()

static int System.DefaultBinder.GetHierarchyDepth ( Type t)
inlinestaticprivateinherited

Definition at line 938 of file DefaultBinder.cs.

939 {
940 int num = 0;
941 Type type = t;
942 do
943 {
944 num++;
945 type = type.BaseType;
946 }
947 while (type != null);
948 return num;
949 }

References System.type.

Referenced by System.DefaultBinder.FindMostDerivedNewSlotMeth(), System.DefaultBinder.FindMostSpecificField(), System.DefaultBinder.FindMostSpecificMethod(), and System.DefaultBinder.FindMostSpecificProperty().