System.ReflectionLibrary.GetHierarchy C# (CSharp) Method

GetHierarchy() public static method

public static GetHierarchy ( Type target, bool allowAbstract = true, bool includeSelf = true ) : IEnumerable
target Type
allowAbstract bool
includeSelf bool
return IEnumerable
        public static IEnumerable<Type> GetHierarchy(this Type target, bool allowAbstract = true,
            bool includeSelf = true)
            =>
                target
                    .GetSuperClasses(allowAbstract, false)
                    .Concat(target
                        .GetSubclasses(allowAbstract, includeSelf));