I am trying to access properties from a dynamic object that is returned from a c# call.
var xml = api.MyHostFunction();
var productId = xml.ProductId;
This is the prototype for MyHostFunction():
ClearScript is throwing an exception when trying to access the ProductId property.
Debugging I can see that the property actually exists and can be accessed from any Host code. But its not possible to access it from JS:
TypeError: Cannot read property 'ProductId' of undefined
Am I doing anything wrong or ClearScript does not support this yet?