Simple code evaluation C# with Example



Simple code evaluation C# with Example

You can evaluate any valid C# code: 
int value = await CSharpScript.EvaluateAsync("15 * 89 + 95"); 
var span = await CSharpScript.EvaluateAsync("new DateTime(2016,1,1) - DateTime.Now"); 
If type is not specified, the result is object: 
object value = await CSharpScript.EvaluateAsync("15 * 89 + 95"); 
 

0 Comment's

Comment Form

Submit Comment