ContainerOptionsExpressionCompilationBehavior Property

Simple Injector
Gets or sets the expression compilation behavior. Changing this behavior allows interception of the compilation of delegates, for instance debugging purposes.

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

public IExpressionCompilationBehavior ExpressionCompilationBehavior { get; set; }

Property Value

Type: IExpressionCompilationBehavior
The expression compilation behavior.
Exceptions

ExceptionCondition
NullReferenceExceptionThrown when the supplied value is a null reference.
InvalidOperationException Thrown when the container already contains registrations.
See Also

Reference