Replies: 1 comment 2 replies
-
Hi @dpeter99, Could you provide a code sample that doesn't work the way you expect? It's difficult to diagnose your issue without knowing what "listID" and "myObject" are. ClearScript prefers not to convert between .NET and script objects because such conversion tends to be expensive and lossy. Instead it aims to provide full, easy access to both .NET and script objects from either side. Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to marshal a complex object to the JS side, which the user written scripts should be able to modify in-place in the most natural ways for the developer as possible.
An example I have is a List or Dictionary which seem to be mapped 1:1, and it doesn't seem to support the more standard JS ways of handling lists (for example, "listID" in myObject.List - for checking if an element is present in the Dictionary)
Is there any way to achieve 2-way marshalling of these data types to a JS native format?
Beta Was this translation helpful? Give feedback.
All reactions