src/Black.Beard.Ioc/ComponentModel/TypeDiscovery.cs
/// <summary>
///     return a list of type that assignable from the specified type
/// </summary>
/// <param name="typeFilter"></param>
/// <returns></returns>
return a list of type that assignable from the specified type
return a list of type that assignable from the specified type
public List<Type> GetTypes(Type typeFilter)
        {
            var result = new List<Type>();
            var assemblies = Assemblies().ToArray();
            result.AddRange(Collect(type => typeFilter.IsAssignableFrom(type) && type != typeFilter, assemblies));
            return result;
        }
public List < Type > GetTypes ( Type typeFilter ) { var result = new List < Type > ( ) ; var assemblies = Assemblies ( ) . ToArray ( ) ; result . AddRange ( Collect ( type => typeFilter . IsAssignableFrom ( type ) && type != typeFilter , assemblies ) ) ; return result ; }
return a list of type that assignable from the specified type
return a list of type that assignable from the specified type
None
typeFilter
Type
None