Метод | Описание | |
---|---|---|
BooleanExpression ( string expressionText ) : System |
Creates a new instance of the BooleanExpression class. The default comparer for identifiers is StringComparer.OrdinalIgnoreCase. |
|
BooleanExpression ( string expressionText, IEqualityComparer |
Creates a new instance of the BooleanExpression class.
|
|
Evaluate ( ) : bool |
Evaluates the expression using the current values of the variables.
|
|
TryGetVariable ( string identifier, Variable &variable ) : bool |
Attempts to get the variable identified by the given identifier.
|
|
this ( string identifier ) : Variable |
Gets the variable identified by the given identifier.
|
Метод | Описание | |
---|---|---|
ParseExpression ( StringBuilder builder ) : |
||
ParseIdentifier ( StringBuilder builder ) : |
||
ParseSubexpression ( StringBuilder builder ) : |
||
ShedWhitespace ( StringBuilder builder ) : void |
public BooleanExpression ( string expressionText ) : System | ||
expressionText | string | The expression text to be parsed as a boolean expression. |
Результат | System |
public BooleanExpression ( string expressionText, IEqualityComparer |
||
expressionText | string | The expression text to be parsed as a boolean expression. |
identifierComparer | IEqualityComparer |
Comparer used to compare identifiers. |
Результат | System |
public TryGetVariable ( string identifier, Variable &variable ) : bool | ||
identifier | string | The identifier used to refer to the variable. |
variable | Variable | The variable identified by the given identifier. |
Результат | bool |
public this ( string identifier ) : Variable | ||
identifier | string | The identifier used to refer to the variable. |
Результат | Variable |