Replies: 2 comments
-
Could you please formulate a smallest possible failing test case (xUnit, NUnit, console program) for this problem? It would make investigating easier. |
Beta Was this translation helpful? Give feedback.
-
DependenciesPerson Class
This is the object I am trying to pass along to my JavaScript function. JavaScript
This is the simple function we're attempting to call. It is designed to support a collection of people that need to be processed via I'll write a brief unit test later and post back what I find (if anything). Ideally I'd avoid having to implement |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am facing an issue regarding the use of generics. I essentially try to pass an array of items to a function via
Engine.Invoke
, which in turn, gives me aObject must implement IConvertible
error. Had a look through issues and found #15 - IConvertible requirement, not sure if this is related?I have a script that accepts an array of people, that could look something like this:
I have written an engine wrapper in C#, of which, has a ModifyItem method with the following body:
Notice that I am initializing a new array of T when I call
Engine.Invoke
- we do this so that our scripts are generalized; we're essentially fooling the script into handling a collection of items when there will always be one item.Any help would be appreciated! 🙏🏻
Beta Was this translation helpful? Give feedback.
All reactions