uamethod
unable to recognize Enumerator type
#1291
-
Beta Was this translation helpful? Give feedback.
Answered by
schroeder-
May 9, 2023
Replies: 2 comments 1 reply
-
This issue is tricky. The enum gets converted to an Int32 and for the encoding layer there is no way to know it is enum. So either we check the values before passing them to the method and convert them. Or we expand the @uamethod decorator to convert some arguments. The issue also exists the otherway, if you recive a enum as methodcall result. |
Beta Was this translation helpful? Give feedback.
0 replies
-
A after a bit of digging i would recommend to cast the parameter like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
danmoser
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A after a bit of digging i would recommend to cast the parameter like this: