Table of Contents

Class ExpressionFactory

Namespace
NCalc.Factories
Assembly
NCalc.Sync.dll

Default IExpressionFactory implementation.

public sealed class ExpressionFactory : IExpressionFactory
Inheritance
ExpressionFactory
Implements
Inherited Members

Constructors

ExpressionFactory(ILogicalExpressionFactory, ILogicalExpressionCache, IEvaluationService)

Default IExpressionFactory implementation.

public ExpressionFactory(ILogicalExpressionFactory logicalExpressionFactory, ILogicalExpressionCache cache, IEvaluationService evaluationService)

Parameters

logicalExpressionFactory ILogicalExpressionFactory
cache ILogicalExpressionCache
evaluationService IEvaluationService

Methods

Create(LogicalExpression, ExpressionContext?)

public Expression Create(LogicalExpression logicalExpression, ExpressionContext? expressionContext = null)

Parameters

logicalExpression LogicalExpression
expressionContext ExpressionContext

Returns

Expression

Create(string, ExpressionContext?)

public Expression Create(string expression, ExpressionContext? expressionContext = null)

Parameters

expression string
expressionContext ExpressionContext

Returns

Expression