src/Shared/EntityFramework/Core/Query/PlanCompiler/TypeInfo.cs
// <summary>
// Adds all types in the hierarchy to the given list.
// </summary>
Adds all types in the hierarchy to the given list.
Adds all types in the hierarchy to the given list .
private void GetTypeHierarchy(List<TypeInfo> result)
        {
            result.Add(this);
            foreach (var subType in ImmediateSubTypes)
            {
                subType.GetTypeHierarchy(result);
            }
        }
private void GetTypeHierarchy ( List < TypeInfo > result ) { result . Add ( this ) ; foreach ( var subType in ImmediateSubTypes ) { subType . GetTypeHierarchy ( result ) ; } }
Adds all types in the hierarchy to the given list.
Adds all types in the hierarchy to the given list .
result
List<TypeInfo>