Click or drag to resize

IRuleApiEvalT Method (String)

Evaluate a rule.

Namespace:  Casewhere.Runtime.DSL.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
T Eval<T>(
	string ruleName
)

Parameters

ruleName
Type: SystemString
Name of the rule.

Type Parameters

T
Return value type

Return Value

Type: T
Value return from rule expression
Examples
var ruleApi = ctx.Use<IRuleApi>();
ruleApi.Eval<int>(ruleName);
See Also