current version 5.4.9 seem not support Reflection,will you support that next update?
here is my test code.
using System.Text;
using System.Web.Services.Discovery;
using SharpKit.JavaScript;
using SharpKit.Html;
using SharpKit.jQuery;
namespace SharpKitWebApp1
{
[JsType(JsMode.Global, Filename = "res/Default.js")]
public class DefaultClient
{
private static void DefaultClient_Load()
{
new jQuery(HtmlContext.document.body).append("Ready
");
}
private static void btnTest_click(DOMEvent e)
{
var m = new MyClass();
var mType = m.GetType(); //.GetFields();
var fileds = mType.GetFields();
new jQuery(HtmlContext.document.body).append("<br/>" + fileds);
}
}
}
[JsType(JsMode.Clr, Filename = "res/MyClass.js")]
public class MyClass
{
public int test = 1;
}
current version 5.4.9 seem not support Reflection,will you support that next update?
here is my test code.
using System.Text;
using System.Web.Services.Discovery;
using SharpKit.JavaScript;
using SharpKit.Html;
using SharpKit.jQuery;
namespace SharpKitWebApp1
{
[JsType(JsMode.Global, Filename = "res/Default.js")]
public class DefaultClient
{
private static void DefaultClient_Load()
{
new jQuery(HtmlContext.document.body).append("Ready
");
}
}
[JsType(JsMode.Clr, Filename = "res/MyClass.js")]
public class MyClass
{
public int test = 1;
}