using Jint.Runtime.Interop;
public static void Main()
Console.WriteLine("Hello World");
h.ShapeType = Shape.Circle;
Console.WriteLine($"MyShape: {h.ShapeType}");
var result = engine.Evaluate("const type = h.ShapeType.toString() + \"mytype\"; return `${type}-type`;");
Console.WriteLine($"Result: {result.ToObject()}");
var asObj = engine.Evaluate("h.ShapeType.GetType();");
Console.WriteLine(asObj.ToString());
public Shape ShapeType {get;set;}
public class EnumsToStringConverter : IObjectConverter
public bool TryConvert(Engine engine, object value, out JsValue result)
result = value.ToString();