Src/Black.Beard.ComponentModel/ComponentModel/TypeDiscovery.cs
/// <summary>
///     Return a list of type that match with the specified filter
/// </summary>
/// <param name="typeFilter"></param>
/// <returns></returns>
Return a list of type that match with the specified filter
Return a list of type that match with the specified filter
public List<Type> GetTypes(Func<Type, bool> typeFilter)
        {
            if (typeFilter == null)
                typeFilter = t => true;
            var result = new List<Type>();
            var assemblies = Assemblies().ToArray();
            result.AddRange(Collect(typeFilter, assemblies));
            return result;
        }
public List < Type > GetTypes ( Func < Type , bool > typeFilter ) { if ( typeFilter == null ) typeFilter = t => true ; var result = new List < Type > ( ) ; var assemblies = Assemblies ( ) . ToArray ( ) ; result . AddRange ( Collect ( typeFilter , assemblies ) ) ; return result ; }
Return a list of type that match with the specified filter
Return a list of type that match with the specified filter
None
typeFilter
Func<Type, bool>
None