c# - Why does csc2.exe exit with an error code with the use of the dynamic keyword? -


    public void searchapps(string query, object callback)     {         dynamic callbackfunc = callback;         threadmanager.querygamesasync(query, mainform.portal, log,              (list) =>             {                 string[] strlist = new string[list.length];                 for(int = 0; < strlist.length; i++)                 {                     strlist[i] = list[i].uid;                 }                 string data = json.serialize(strlist);                 callbackfunc(data);             });     } 

this method causes csc2.exe exit code 1 can't compile it. idea what's wrong ? method part of scriptingobject of browser control. that's why callback dynamic.

i had reference "microsoft.csharp" in order use dynamic.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -