Click or drag to resize

EvaluatorEvalT Method (String)

Simplified static method to execute an expression and return the resulting value, cast as the specified object type.

Namespace:  Data.Eval
Assembly:  Data_Eval (in Data_Eval.dll) Version: 2.5.0
Syntax
C#
public static T Eval<T>(
	string expression
)

Parameters

expression
Type: SystemString
C# based string expression to be evaluated, e.g. "return 1+1".

Type Parameters

T
Object type to cast the return value as.

Return Value

Type: T
Value specified to be returned from the expression.
See Also