How to pass values as out from C# -> JS interop? #1178
-
I'm creating an external script that should access Some ideas how to deal with that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Oh. Thanks for answer. |
Beta Was this translation helpful? Give feedback.
out
andref
share the the same problem, JS doesn't have such semantics that would map well. This get awfully complex with all the closures etc. So unfortunately you need to add helpers, like extension methodGetValueOrDefault
(which I think is also part of latest NETversions), Jint does support registering extension methods too!