Table of Contents

Interface IExpressionCompiler

Namespace
NRules.Extensibility
Assembly
NRules.dll

Compiles expressions used in rules conditions and actions in a form of expression trees into executable delegates. The default implementation uses built-in .NET expression compiler.

public interface IExpressionCompiler

Methods

Compile<TDelegate>(Expression<TDelegate>)

Compiles an expression tree into an executable delegate.

TDelegate Compile<TDelegate>(Expression<TDelegate> expression) where TDelegate : Delegate

Parameters

expression Expression<TDelegate>

Expression tree to compile.

Returns

TDelegate

The compiled delegate.

Type Parameters

TDelegate

Type of the underlying expression delegate.