Skip to content

IReflectionTypeSelector Methods

InterfaceMethods4 members
The Compiled Implementation Type Selector
GetTypesSection titled GetTypesabstractIEnumerable<Type>
Lists all of the classes in a given assembly
public interface IReflectionTypeSelector
{
public abstract IEnumerable<Type> GetTypes()
{
// ...
}
}
GetTypes(bool)Section titled GetTypes(bool)abstractIEnumerable<Type>
Lists all of the public classes in a given assembly
public interface IReflectionTypeSelector
{
public abstract IEnumerable<Type> GetTypes(
bool publicOnly)
{
// ...
}
}
publicOnlyboolSpecifies whether too add public types only.
GetTypes(Action<ITypeFilter>)Section titled GetTypes(Action<ITypeFilter>)abstractIEnumerable<Type>
Adds all public, non-abstract classes from the selected assemblies that matches the requirements specified in the action to the DependencyInjection.IServiceCollection.
public interface IReflectionTypeSelector
{
public abstract IEnumerable<Type> GetTypes(
Action<ITypeFilter> action)
{
// ...
}
}
actionAction<ITypeFilter>The filtering action.
GetTypes(bool, Action<ITypeFilter>)Section titled GetTypes(bool, Action<ITypeFilter>)abstractIEnumerable<Type>
Adds all non-abstract classes from the selected assemblies that matches the requirements specified in the action to the DependencyInjection.IServiceCollection.
public interface IReflectionTypeSelector
{
public abstract IEnumerable<Type> GetTypes(
bool publicOnly,
Action<ITypeFilter> action)
{
// ...
}
}
publicOnlyboolSpecifies whether too add public types only.
actionAction<ITypeFilter>The filtering action.