Simple code evaluation

suggest change

You can evaluate any valid C# code:

int value = await CSharpScript.EvaluateAsync<int>("15 * 89 + 95");
var span = await CSharpScript.EvaluateAsync<TimeSpan>("new DateTime(2016,1,1) - DateTime.Now");

If type is not specified, the result is object:

object value = await CSharpScript.EvaluateAsync("15 * 89 + 95");

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents