Skip to content

Get Object from Javascript as .NET ExpandoObject #217

Description

@mb-software

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:

public void test(JSValue obj)
{
// this unfortunately does not work, it returns null
Object clrObj = obj.As<ExpandoObject>()
}

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions