IPropertySelectionBehaviorSelectProperty Method

Simple Injector
Determines whether a property should be injected by the container upon creation of its type.

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

bool SelectProperty(
	Type implementationType,
	PropertyInfo propertyInfo
)

Parameters

implementationType
Type: SystemType
The type being created for which the property should be injected. Note that this might a different type than the type on which the property is declared (which might be a base class).
propertyInfo
Type: System.ReflectionPropertyInfo
The property to check.

Return Value

Type: Boolean
True when the property should be injected.
See Also

Reference