You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For an expression like a = b * c
we know that a would be modified after evaluating the expression.
Is there a mechanism in ExpressionEvaluator which tells us that a will/could be modified after evaluating the expression.
ExpressionEvaluator has a PreEvaluateVariable event but that is fired for all variables in the expression, i`m looking to find the variables on the left hand side of the expression.
This could be done in string processing but was hoping if there is a better way where I could have the expression engine to tell me.
The text was updated successfully, but these errors were encountered:
For now there is no event for variable assignation equivalent to PreEvaluateVariable or EvaluateVariable.
As I do not have so much time to continue developping ExpressionEvaluator I don't know when I could add this.
But for your case, there is maybe an alternative way by inheritance.
usingCodingSeb.ExpressionEvaluator;publicclassYourEvaluator:ExpressionEvaluator{protectedoverridevoidAssignVariable(stringvarName,objectvalue){// Do What you want here for pre assignation // Here we redo what ExpressionEvaluator would dobase.AssignVariable(varName,value)// Do What you want here for postassignation }
Hi,
For an expression like
a = b * c
we know that
a
would be modified after evaluating the expression.Is there a mechanism in
ExpressionEvaluator
which tells us thata
will/could be modified after evaluating the expression.ExpressionEvaluator
has aPreEvaluateVariable
event but that is fired for all variables in the expression, i`m looking to find the variables on the left hand side of the expression.This could be done in string processing but was hoping if there is a better way where I could have the expression engine to tell me.
The text was updated successfully, but these errors were encountered: