Using Generics with JsValue ? #1531
Unanswered
praneetnadkar
asked this question in
Q&A
Replies: 1 comment
-
Can someone have a look and suggest if casting the JsValue to type |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is there a way to convert JsValue to type T using generics?
Something like this:
T Convert<T>(object action) { return ((Jint.Native.JsValue)action).As<T>() }
I tried searching for usage of
As<T>
, but that doesn't work either.Beta Was this translation helpful? Give feedback.
All reactions