You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get an Object from Javascript and convert it to a .NET System.Dynamics.ExpandoObject. Is there any solution for this? For example I call this .NET function from my JS, passing an Object as parameter:
public void test(JSValue obj)
{
// this unfortunately does not work, it returns null
Object clrObj = obj.As<ExpandoObject>()
}
Hi! Sorry for the lag.
No, there is no embedded converter or wrapper from JS object to. And in general, support of ExpandoObject and similar types is "not as good as we would like" because of all mechanisms in .NET platform for them (i mean dynamic) brings to significant performance penalty and rarely used.
Hi and thanks a lot for this great library!
I'm trying to get an Object from Javascript and convert it to a .NET System.Dynamics.ExpandoObject. Is there any solution for this? For example I call this .NET function from my JS, passing an Object as parameter:
Thanks!
EDIT:
It seems we can pass an ExpandoObject to JS:
https://github.com/nilproject/NiL.JS/blob/develop/FunctionalTests/ExpandoObjectTests.cs
But what about the other way round?
The text was updated successfully, but these errors were encountered: