Skip to content

Create an 'IgnoreAttribute' so we can hide properties and methods from RegisterJsObject method #476

@favill42

Description

@favill42

For example, the ParentForm property and DoNotExposeThisToJS method would not be exposed via JavaScript -

public class JSObjectWithAHiddenPropertyAndMethod
{
    public JSObjectWithAHiddenPropertyAndMethod(Form parent)
    {
        this.ParentForm = parent;
    }

    [Ignore]
    public Form ParentForm { get; set; }

    public string DoSomethingAwesomeFromJS()
    {
        return "This is awesome";
    }

    [Ignore]
    public object DoNotExposeThisToJS()
    {
        return null;
    }
}

This would be super useful for the app I'm working on.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions