TK.EvaluateExpression (String, IDictionary<StringObject>(), Type(), String()) Method
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.
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
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());