Return a list in extern method?
Monkey Forums/Monkey Programming/Return a list in extern method?
| ||
Hi all, maybe its too simple and I cant see it but... is there any way to return a list of strings in an extern method? I have a C# method that should return strings in a list but I dont know howto connect monkey with that. Extern Class ENSocket = "EasyNetSocket" Method Receive:List<String>() End Monkey says it cant convert "System.Collections.Generic.List<string>" in "bb_list_List", which seems to be logical. Is there any way to do it? Greetz |
| ||
You could hack it, first convert the list to a comma separated string in C# and then pass that back and use split on monkey side. A lot slower that just passing the list.... |
| ||
So there is no other way than a workaround... ok thanks. Yes I split the string now on monkey side. |
| ||
I would take an array..Extern Class ENSocket = "EasyNetSocket" Method Receive:String[]() End |