CSharpScriptExecution.ExecuteCodeAsync

Executes a snippet of code. Pass in a variable number of parameters (accessible via the parameters[0..n] array) and return an object value.

Code should always return a result: include: return (object) SomeValue or return null

public Task<TResult> ExecuteCodeAsync<TResult,TModelType>(string code, TModelType model)

Overloads