I am trying to create a simple object-wrapper for html DOM and pass it to Script Engine as a global value.
I have one issue which I can't solve.
There is explanation of my issue with example:
var eng = new ScriptEngine();
HtmlDom html = new HtmlDom(doc);
my js file contains line
HtmlDom class has property forms
is derived from DynamicObject
I expected to override TryGetIndex
and implement logic here to return element which I need, but this function doesn't get call.
Also I tried to create indexer function
public DomElementsType this[int index]
there is logic to return certain element
Result the same.
I can't just use array, because form object should support Submit
function for example.
How I can accomplish my goal?