Mar 29, 2014 at 11:08 AM
Edited Mar 29, 2014 at 11:13 AM
console.WriteLine is translated to get member "WriteLine" and call the result:
Delegate dlg = getMember(console, "WriteLine");
For members there is no concept of overloading. To call overloaded methods you must use the colon (console:WriteLine).
callMember(console, "WriteLine", "a");
NeoLua takes care of self parameter, that might be existing. In this example it is set to null.
There are to ways to call WriteLine:
local console = clr.System.Console;
BECAREFUL: The secound way works in NeoLua 0.8.3. I found a little error on Static-Calls on static classes :).