void Reflect() { var type = JsContext.CtorOf <Enum1Proto>().As <JsObject>(); foreach (var name in type) { var value = type[name]; alert(name + "=" + value); } }
void foo() { var ctor = JsContext.CtorOf <Constructors>(); var obj = JsContext.JsCode("new ctor()"); }