Table of Contents

Class ExpressionFactory

Namespace
NCalc.Factories
Assembly
NCalc.Core.dll

Default IExpressionFactory implementation.

public sealed class ExpressionFactory : IExpressionFactory
Inheritance
ExpressionFactory
Implements
Inherited Members

Constructors

ExpressionFactory(ILogicalExpressionFactory, ILogicalExpressionCache, IEvaluationVisitorFactory?)

Default IExpressionFactory implementation.

public ExpressionFactory(ILogicalExpressionFactory logicalExpressionFactory, ILogicalExpressionCache cache, IEvaluationVisitorFactory? evaluationVisitorFactory = null)

Parameters

logicalExpressionFactory ILogicalExpressionFactory
cache ILogicalExpressionCache
evaluationVisitorFactory IEvaluationVisitorFactory

Methods

Create(LogicalExpression, ExpressionConfiguration?, ExpressionContext?, CultureInfo?)

public Expression Create(LogicalExpression logicalExpression, ExpressionConfiguration? configuration = null, ExpressionContext? context = null, CultureInfo? cultureInfo = null)

Parameters

logicalExpression LogicalExpression
configuration ExpressionConfiguration
context ExpressionContext
cultureInfo CultureInfo

Returns

Expression

Create(string, ExpressionConfiguration?, ExpressionContext?, CultureInfo?)

public Expression Create(string expression, ExpressionConfiguration? configuration = null, ExpressionContext? context = null, CultureInfo? cultureInfo = null)

Parameters

expression string
configuration ExpressionConfiguration
context ExpressionContext
cultureInfo CultureInfo

Returns

Expression