public abstract class EvaluationScope<T> : EvaluationScope,
IEvaluationScope<T>, IEvaluationScope
where T : class, new(), IValueProvider
Create inhertited classes from this base class to define, run and retrieve a result of your calculations.
Calculation |
Your class inheriting from EvaluationScope<T> is a logical unit to compute desired result. Place lambda expressions, input parameters or constants of types derived from Value or IValue in your derived implementation. |
Examples | Inheriting from EvaluationScope<T>, where T is a result class type returned by ToResult() method. C#
|
Learn more |
EvaluationScopeT | Initializes a new instance of the EvaluationScopeT. |
EvaluationScopeT(EvaluationOptions) | Initializes a new instance of the EvaluationScopeT class with custom options. |
EvaluationScopeT(FuncEvaluationScopeT, T) | Initializes a new instance of the EvaluationScopeT class with standalone labda expression. |
EvaluationScopeT(String) | Initializes a new instance of the EvaluationScopeT class with standalone lambda expression. |
ClearCache | Force clearing cached evaluation results. (Inherited from EvaluationScope) |
EvaluateTValue(ExpressionFuncTValue, String, String) | Evaluates an expression and captures it's arguments. (Inherited from EvaluationScope) |
EvaluateTCase, TValue(FuncSwitchExpressionTCase, TValueResultEvaluator, String) | Evaluates switch expression and captures it's values as arguments. (Inherited from EvaluationScope) |
Return | Override to implement the final calculation step. |
ToResult | Runs and return result from implemented calculation. |