This simple library might be useful for you if you need any of the following:

  • Evaluate string expressions. For example - ( 10.1 + 1 - 2 ) * 4 + 2.12 / 2Expression
  • Evaluate expression that contains variables - ( Value1 + 10 ) * Value1 + Value2 * 15Expression with variables
  • Evaluate expression with aggregate functions against tabular data, for example collection of objects - 
    SUM(Property1) + AVG(Property2) ) * MIN( (Property1 + Property3) * 10 )
  • Integration with DevExpress components:
    1. Create custom summary in ASPxGridView that is based on data from several columns, and cannot be implemented with the help of standard summaries AVG, COUNT, etc.. No additional objects, or even classes to keep aggregative state during custom summary calculation. You don’t even need event handler for CustomSummaryCalculate event. Just simple expression
      SUM( Column1 + Column2 ) / Column3
    2. Create custom summary for XtraReports without custom classes for state maintenance or additionald event handlers for XRLabel
      lblSummary.SetExpression("AVG(Column1) + AVG(Column2)")

Last edited Sep 14, 2012 at 6:19 AM by vol_bob, version 15