TypesToRegisterOptions Properties

Simple Injector

The TypesToRegisterOptions type exposes the following members.

Properties

  NameDescription
Public propertyIncludeComposites
Gets or sets a value indicating whether composite types should be included in the result. The default value of this property is true. A type is considered a composite if the type's constructor contains a parameter of
IEnumerable<T>
,
ICollection<T>
,
IList<T>
,
IReadOnlyCollection<T>
,
IReadOnlyList<T>
or
T[]
(array of T), where exactly matches the
serviceType
argument, supplied to the GetTypesToRegister method.
Public propertyIncludeDecorators
Gets or sets a value indicating whether decorator types should be included in the result. The default value of this property is false. A type is considered a decorator if the type's constructor contains a parameter of the type that exactly matches the
serviceType
argument, supplied to the GetTypesToRegister method, or when there is a FuncTResult argument where matches the
serviceType
argument.
Public propertyIncludeGenericTypeDefinitions
Gets or sets a value indicating whether generic type definitions (types that have TypeInfo.IsGenericTypeDefinition or Type.IsGenericTypeDefinition set to true) should be included in the result. The default value for this property is false.
Top
See Also

Reference