Megadocs 0.0.1
All of megapop's internal libraries
Megapop.NCalc.Expression Class Reference
+ Inheritance diagram for Megapop.NCalc.Expression:

Public Member Functions

 Expression (string expression)
 
 Expression (string expression, EvaluateOptions options)
 
 Expression (LogicalExpression expression)
 
 Expression (LogicalExpression expression, EvaluateOptions options)
 
bool HasErrors ()
 Pre-compiles the expression in order to check syntax errors. If errors are detected, the Error property contains the message. More...
 
object Evaluate ()
 

Static Public Member Functions

static LogicalExpression Compile (string expression, bool nocache)
 

Protected Attributes

string OriginalExpression
 Textual representation of the expression to evaluate. More...
 
Dictionary< string, IEnumerator > ParameterEnumerators
 
Dictionary< string, object > ParametersBackup
 

Properties

EvaluateOptions Options [get, set]
 
static bool CacheEnabled [get, set]
 
string Error [get]
 
LogicalExpression ParsedExpression [get]
 
Dictionary< string, object > Parameters [get, set]
 

Events

EvaluateFunctionHandler EvaluateFunction
 
EvaluateParameterHandler EvaluateParameter
 

Constructor & Destructor Documentation

◆ Expression() [1/4]

Megapop.NCalc.Expression.Expression ( string  expression)
inline

◆ Expression() [2/4]

Megapop.NCalc.Expression.Expression ( string  expression,
EvaluateOptions  options 
)
inline

◆ Expression() [3/4]

◆ Expression() [4/4]

Member Function Documentation

◆ Compile()

static LogicalExpression Megapop.NCalc.Expression.Compile ( string  expression,
bool  nocache 
)
inlinestatic

◆ Evaluate()

object Megapop.NCalc.Expression.Evaluate ( )
inline

◆ HasErrors()

bool Megapop.NCalc.Expression.HasErrors ( )
inline

Pre-compiles the expression in order to check syntax errors. If errors are detected, the Error property contains the message.

Returns
True if the expression syntax is correct, otherwiser False

Member Data Documentation

◆ OriginalExpression

string Megapop.NCalc.Expression.OriginalExpression
protected

Textual representation of the expression to evaluate.

◆ ParameterEnumerators

Dictionary<string, IEnumerator> Megapop.NCalc.Expression.ParameterEnumerators
protected

◆ ParametersBackup

Dictionary<string, object> Megapop.NCalc.Expression.ParametersBackup
protected

Property Documentation

◆ CacheEnabled

bool Megapop.NCalc.Expression.CacheEnabled
staticgetset

◆ Error

string Megapop.NCalc.Expression.Error
get

◆ Options

EvaluateOptions Megapop.NCalc.Expression.Options
getset

◆ Parameters

Dictionary<string, object> Megapop.NCalc.Expression.Parameters
getset

◆ ParsedExpression

LogicalExpression Megapop.NCalc.Expression.ParsedExpression
get

Event Documentation

◆ EvaluateFunction

EvaluateFunctionHandler Megapop.NCalc.Expression.EvaluateFunction

◆ EvaluateParameter

EvaluateParameterHandler Megapop.NCalc.Expression.EvaluateParameter

The documentation for this class was generated from the following file: