Interface IExpression
- Namespace
- xFunc.Maths.Expressions
- Assembly
- xFunc.Maths.dll
Defines methods to work with expressions.
public interface IExpression
- Extension Methods
Methods
Analyze<TResult>(IAnalyzer<TResult>)
Analyzes the current expression.
TResult Analyze<TResult>(IAnalyzer<TResult> analyzer)
Parameters
analyzer
IAnalyzer<TResult>The analyzer.
Returns
- TResult
The analysis result.
Type Parameters
TResult
The type of the result.
Analyze<TResult, TContext>(IAnalyzer<TResult, TContext>, TContext)
Analyzes the current expression.
TResult Analyze<TResult, TContext>(IAnalyzer<TResult, TContext> analyzer, TContext context)
Parameters
analyzer
IAnalyzer<TResult, TContext>The analyzer.
context
TContextThe context.
Returns
- TResult
The analysis result.
Type Parameters
TResult
The type of the result.
TContext
The type of additional parameter for analyzer.
Execute()
Executes this expression. Don't use this method if your expression has variables or user-functions.
object Execute()
Returns
- object
A result of the execution.
Execute(ExpressionParameters?)
Executes this expression.
object Execute(ExpressionParameters? parameters)
Parameters
parameters
ExpressionParametersAn object that contains all parameters and functions for expressions.
Returns
- object
A result of the execution.
- See Also
ToString(IFormatter)
Returns a string that represents this instance.
string ToString(IFormatter formatter)
Parameters
formatter
IFormatterThe formatter.