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
Post a Comment