Replies: 2 comments 3 replies
-
Please clarify. Are you asking about changing the source code? Or are you referring to some kind of conversion at runtime? Please say more about what you're trying to do and what isn't working. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @hyzx86,
By default, ClearScript prefers not to perform lossy conversions automatically. However, you can do this: var engine = new V8ScriptEngine(V8ScriptEngineFlags.EnableDateTimeConversion); Cheers! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to convert the input type of C# function to ExpandoObject or dynamic?
Just like #479
I'm using OrchardCore ,I’m trying to use ClearScript to instead Jint.
Currently, Jint handles the conversion of JS primitive types to C# primitive types
Let's say I have a C# delegate
If it's in Jint, it can directly convert the input argument to a DateTime
But in ClearScript, it is a wrapped object
Beta Was this translation helpful? Give feedback.
All reactions