I want to try to evaluate this simple expression .
in this code I've added variable to VariableCollectionvariable name : "startDate" .
variable value : nullnote : the type of Variable Collection (Dictionary) value is object
the issue : I got this exception
System.ArgumentNullException: 'Value cannot be null. (Parameter 'value')'
ExpressionContext context = new ExpressionContext();
string expression = @"(startDate > ""2020-05-01""))";
var varaibles = context.Variables;
//Add variable with name startDate with null value
varaibles.Add("startDate",null);
var compile = context.CompileGeneric<bool>(expression);
var result = compile.Evaluate();
I want to try to evaluate this simple expression . in this code I've added variable to
VariableCollection
variable name : "startDate" . variable value : null note : the type of Variable Collection (Dictionary) value is objectthe issue : I got this exception System.ArgumentNullException: 'Value cannot be null. (Parameter 'value')'