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

New Post: Array as return type

$
0
0
Ive been trying to return an array (or basicly any collection) with strings from C# to V8 and it doesnt work. Is there any way to return a collection to V8 so that the return type becomes a javascript string array?

My current workaround is to JSON it in c# before I return it and parse the json before using it in javascript. It works, but feels really clumsy. If this is the best way, cant clearscript do it for me? At least for base types.

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images