Click or drag to resize

DefaultPropertySelectorInjectProperty Method

Provides default filtering to determine if property should be injected by rejecting non-public settable properties.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public virtual bool InjectProperty(
	PropertyInfo propertyInfo,
	Object instance
)

Parameters

propertyInfo
Type: System.ReflectionPropertyInfo
Property to be injected.
instance
Type: SystemObject
Instance that has the property to be injected.

Return Value

Type: Boolean
Whether property should be injected.

Implements

IPropertySelectorInjectProperty(PropertyInfo, Object)
See Also