dynamic[] args become System.Object[] args when built to UWP and cause crashes
Hello, I'm building my game to UWP, and having trouble with the dynamic
type.
One of the library I'm using uses a lot of dynamic[]
for arguments e.g. List<dynamic> ToGTV(dynamic[] args)
.
The game run fine on editor, or when built to StandAlone. But when I build it to UWP platform (I need schema deeplink), the compiled Visual Studio solution keep crashing at lines that uses dynamic
.
And in VS Output I see the function changed to TransactionBuilder.ToGTV (System.Object[] args)
.
If I go and change the functions to use object[]
instead e.g List<object> ToGTV(object[] args)
, then the function seems to works. So it seems like my UWP build can't handle dynamic type.
Is there anyway I can make the generated VS Solution handle dynamic type? I can only change the lib source code to test, it's not a long term solution for me.
Your answer
![](https://koobas.hobune.stream/wayback/20220613014328im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why won't my C# code work when I make it on a Mac and then copy it exactly to a Windows 0 Answers
How to adapt Voice Recognition Script to my project? 1 Answer
My unity project only works on certain computers 0 Answers
Unity cannot find Windows Phone 8.1 SDK while building 4 Answers
Code acts differently in new project than in old project; Cursor.lockState issue 1 Answer