Skip to content

Please support Reflection? #12

@sonygod

Description

@sonygod

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions