Skip to content

IReflectionTypeSelector Interface

Definition

The Compiled Implementation Type Selector

C#
public interface IReflectionTypeSelector : IReflectionAssemblySelector

Methods

GetTypes()

Lists all of the classes in a given assembly

C#
IEnumerable<Type> GetTypes()

Returns

IEnumerable<Type>

GetTypes(bool)

Lists all of the public classes in a given assembly

C#
IEnumerable<Type> GetTypes(bool publicOnly)

Parameters

publicOnly bool
Specifies whether too add public types only.

Returns

IEnumerable<Type>

GetTypes(Action<ITypeFilter>)

Adds all public, non-abstract classes from the selected assemblies that matches the requirements specified in the action to the IServiceCollection.

C#
IEnumerable<Type> GetTypes(Action<ITypeFilter> action)

Parameters

action Action<ITypeFilter>
The filtering action.

Returns

IEnumerable<Type>

GetTypes(bool, Action<ITypeFilter>)

Adds all non-abstract classes from the selected assemblies that matches the requirements specified in the action to the IServiceCollection.

C#
IEnumerable<Type> GetTypes(bool publicOnly, Action<ITypeFilter> action)

Parameters

publicOnly bool
Specifies whether too add public types only.

action Action<ITypeFilter>
The filtering action.

Returns

IEnumerable<Type>