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.