TK.EvaluateExpression (String, IDictionary<StringObject>(), Type(), String()) Method

Evaluates the simple expression using a data series
Public Shared Function EvaluateExpression( _ 
ByVal expression As String, _ 
ByVal parameters As IDictionary(Of String, Object)(), _ 
Optional ByVal extraTypes As Type() = null, _ 
Optional ByVal namespaces As String() = null _ 
) As Object()
This language is not supported or no code example is available.
public static object[] EvaluateExpression( 
string expression
IDictionary<string, object>[] parameters
Type[] extraTypes = null, 
string[] namespaces = null 
)
This language is not supported or no code example is available.

Parameters

expression
string

Expression

parameters
IDictionary<string, object>[]

Parameters containg a data series

extraTypes
Type[]

Optional. Includes other types, in addition to the basics (Math, DateTime, DateTimeOffset, DataTable), during compilation and execution

namespaces
string[]

Optional. Includes namespaces of the extra types

Return Value

object[]

Array containg result of each evaluation

Example
 
List<Dictionary<string, object>> list = new List<Dictionary<string, object>>(); for (int i = 0; i < 100000; i++) { Dictionary<string, object> dict = new Dictionary<string, object>(); dict["x"] = i; list.Add(dict); } object[] result = TK.EvaluateExpression("x * 100", list.ToArray());

.NET Framework

Supported in: 4.6.2, 4.7

In this article

Definition