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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -