/// <summary> /// Gets a sorted (base-to-derived) sequence of ancestor-and-descendant-or-self types from the <paramref name="source"/>. /// </summary> /// <param name="source">The source type to locate ancestor-and-descendant-or-self types from.</param> /// <param name="assemblies">The assemblies to search for the <paramref name="source"/>.</param> /// <returns>An <see cref="IEnumerable{Type}"/> holding the ancestor-and-descendant-or-self types from the <paramref name="source"/>.</returns> public static IEnumerable <Type> GetAncestorsAndDescendantsAndSelf(this Type source, params Assembly[] assemblies) { return(TypeUtility.GetAncestorAndDescendantsOrSelfTypes(source, assemblies)); }
/// <summary> /// Gets a sorted (base-to-derived) sequence of ancestor-and-descendant-or-self types from the <paramref name="source"/>. /// </summary> /// <param name="source">The source type to locate ancestor-and-descendant-or-self types from.</param> /// <returns>An <see cref="IEnumerable{Type}"/> holding the ancestor-and-descendant-or-self types from the <paramref name="source"/>.</returns> public static IEnumerable <Type> GetAncestorsAndDescendantsAndSelf(this Type source) { return(TypeUtility.GetAncestorAndDescendantsOrSelfTypes(source)); }