I have a project that i am running .NET code inside. i need to use the existing objects and cannot modify them.
The class in c# that i am trying to use is
class Fields
{
Hashtable list = new Hashtable();
public Fields this[string Name]
{
get{
blah blah
}
}
}
I am attaching the object to JS window :
window = await _browser.MainFrame.ExecuteJavaScript<IJsObject>("window");
window.Properties["Data"] = _myObject;
when using this in the js environment, i can access everything i need to except i cannot use the getter of the Fields.
window.Data.Fields['123']
Is there something i doing wrong or is there a way to use the getter here?