TypesToRegisterOptionsIncludeComposites Property

Simple Injector
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.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

public bool IncludeComposites { get; set; }

Property Value

Type: Boolean
A boolean.
See Also

Reference