Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

Created Unassigned: Exporting array of Number from V8. [53]

$
0
0
Hi again, guys.

There is some way to export a array of Number ([1,2]) from JS evaluation to C# array of integer?

The JS code is:
```
(function (data){ return new RuleExecutionResult(data.BodyFat > 2 && data.Weight > 85, new CLRArray(1,2)) })(data)
```

RuleExecutionResult constructor is:

```
public WorkoutTemplateAssociatedData(bool isValid, int[] associatedObjectiveIds)
```

But ClearScript can't find it because "associatedObjectiveIds" is being binded to a dynamic (as you can see in the attached file), while isValid is correcly binded as true.




Viewing all articles
Browse latest Browse all 2297

Trending Articles