C# Language C# Script Simple code evaluation

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

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");


Got any C# Language Question?