/// <summary> /// Gets a sequence of derived types from the <paramref name="source"/>. /// </summary> /// <param name="source">The source type to locate derived types from.</param> /// <param name="assemblies">The assemblies to search for the <paramref name="source"/>.</param> /// <returns>An <see cref="IEnumerable{Type}"/> holding the derived types from the <paramref name="source"/>.</returns> public static IEnumerable <Type> GetDescendantsAndSelf(this Type source, params Assembly[] assemblies) { return(TypeUtility.GetDescendantOrSelfTypes(source, assemblies)); }
/// <summary> /// Gets a sequence of derived types from the <paramref name="source"/> an it's associated <see cref="Assembly"/>. /// </summary> /// <param name="source">The source type to locate derived types from.</param> /// <returns>An <see cref="IEnumerable{Type}"/> holding the derived types from the <paramref name="source"/>.</returns> public static IEnumerable <Type> GetDescendantsAndSelf(this Type source) { return(TypeUtility.GetDescendantOrSelfTypes(source)); }