Sage Modeling and Simulation Library

Evaluator Delegate

A delegate returned by the evaluator factory, which will evaluate a precompiled expression with the the supplied argument values. Important to remember that the arguments passed in to an evaluator are treated as objects, so if it is expecting a double, and you pass in '3', it gets converted to an instance of System.Int32, and cannot be converted (implicitly) to a double.

This means that if it's expecting a double, pass in 3.0, not 3, or you'll get an invalid cast exception.

Namespace:  Highpoint.Sage.SimCore
Assembly:  Sage4 (in Sage4.dll)


public delegate Object Evaluator(
	params Object[] args


Type: array<Object>[]()[][]